XCode 9 - 无法归档应用程序

时间:2018-01-05 11:16:51

标签: ios cocoapods xcode9.1

我正在使用XCode 7.3,最近迁移到XCode 9.1。

因为,在移动设备上启动应用程序没有问题(编译,运行时不会崩溃)。

但是当我想归档应用时,它会因此错误而失败:"No such module 'RealmSwift'""No such module 'ObjectMapper'"

我正在使用Pods:

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

def pods
platform :ios, '11.1'
pod 'RESideMenu', '4.0.7'
pod 'Alamofire', '4.6.0'
pod 'AlamofireImage', '3.3.0'
pod 'JSONHelper', '2.2.0'
pod 'SwiftyJSON'
pod 'Google/Analytics'
pod 'ObjectMapper', '~> 3.1'
pod 'AlamofireObjectMapper', '~> 5.0'
pod 'RealmSwift', '~> 3.0'
pod 'KVNProgress', '2.3'
pod "CalendarLib", '2.0'
pod 'Charts', '3.0.4'
pod 'SwiftEventBus', :tag => '2.2.0', :git => 'https://github.com/cesarferreira/SwiftEventBus.git'
pod "RichEditorView", :branch => 'swift-4', :git => 'https://github.com/cjwirth/RichEditorView.git'
pod 'SwiftHSVColorPicker'
pod 'Fabric'
pod 'Crashlytics'

end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '4.0'
    end
  end
end

target 'target1' do
    pods
end

target 'target2' do
    pods
end

修改

我发现了这个错误! 当我使用 arm64,armv7和armv7s 进行存档时,它会失败,但如果我只使用arm64存档,这是成功的......但是在iPhone 5s以下的设备上,应用程序不兼容!! 有办法解决吗?

0 个答案:

没有答案