奇怪的是,如果我无法在没有发布错误的情况下复制XCode,那么我就无法成功地构建版本.该项目也在设备上正确构建.
我已经搜索了这个主题,并try 禁用可测试性,并将项目设置中的"No Common Blocks"设置为No,但到目前为止运气不佳.
该项目是一个基于React Native 0.40的项目,还安装了CocoaPods.这是什么
# You Podfile should look similar to this file. React Native currently does not support use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
# Change 'AirMapsExplorer' to match the target in your Xcode project.
target 'StreetSmart' do
pod 'React', path: '../node_modules/react-native', :subspecs => [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
]
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
# when not using frameworks we can do this instead of including the source files in our project (1/4):
# pod 'react-native-maps', path: '../../'
# pod 'react-native-google-maps', path: '../../' # <~~ if you need GoogleMaps support on iOS
end
XCode版本为8.2.1,项目文件通过打开.xcworkspace,因为安装了POD.
非常感谢您的帮助或见解,我在这方面已经坚持了好几个小时.