【发布时间】:2017-06-20 16:19:27
【问题描述】:
奇怪的是,我似乎无法让存档在 XCode 中工作,但如果我不尝试存档而只是构建发布版本,则构建成功而不会出现重复符号上的错误。该项目也可以在设备上正确构建。
我已经搜索了这个主题并尝试禁用可测试性,并将项目设置中的“No Common Blocks”也设置为 NO,但到目前为止没有运气。
该项目是一个基于 React Native 0.40 的项目,同时安装了 CocoaPods。 PodFile 是这个
# 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。
非常感谢您对此的任何帮助或见解,被困了几个小时。
【问题讨论】:
-
开发的包含和/或库路径是否与发布相同?
-
不太清楚你的意思...我在发布模式下构建应用程序并在设备上运行它没有问题。 Archive 使用 Release 构建配置,但只有 Archive 因这些错误而失败。
标签: ios xcode react-native cocoapods