Xcode11.2.1にアップデートしました。
おそらく、Podfileが影響してXcode 11.2ではbuildできていたものが通らなくなりました。
以下のエラーが出ています。
追記:
新しくプロジェクトを作成してみて、Alamofireの4.8.2(バグが出ているプロジェクトと同じバージョン)をインストールしてbuildしてみましたが、問題なくできました。
Alamofireのバージョンが原因ではないのかもしれません。
unknown>:0: error: module map file '/Users/xxx/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.modulemap' not found <unknown>:0: error: module map file '/Users/xxx/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.modulemap' not found 2 errors generated. <unknown>:0: error: failed to emit precompiled header '/Users/xxx/Library/Developer/Xcode/DerivedData/Build/Intermediates/PrecompiledHeaders/ObjectiveC_Bridging_Header-swift_G3WBCCN69QCA-clang_1ZMCMFHEN997W.pch' for bridging header '/Users/xxx/iOSApp/projectapp/projectapp/ObjectiveC_Bridging_Header.h'
Podfile
# Uncomment the next line to define a global platform for your project # platform :ios, '11.0' target 'projectapp' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for projectapp pod 'Alamofire' pod 'AlamofireImage', '~> 3.5' pod 'Crossroad' pod 'FacebookCore' pod 'FacebookLogin' pod 'FacebookShare' target 'projectappTests' do inherit! :search_paths # Pods for testing end target 'projectappUITests' do inherit! :search_paths # Pods for testing end end post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '4.2' end end end
ちなみに、Alamofireには新しいバージョンが出ているようです。
もしかすると、以下のバージョンでXcode11.2.1に対応しているのかもしれません。
pod 'Alamofire', '~> 5.0.0-rc.3'
しかし、AlamofireImageの最新版がAlamofireの4.8に対応しているようで、Alamofireの最新版は入れられないようです。
$ pod install --repo-update [!] CocoaPods could not find compatible versions for pod "Alamofire": In Podfile: Alamofire (~> 5.0.0-rc.3) AlamofireImage (~> 3.5) was resolved to 3.5.2, which depends on Alamofire (~> 4.8)
Cocoapods側の問題なのか、Xcode側の設定だけで解決できると良いのですが。。。
何が原因でしょうか?よろしくお願いします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。