尝试构建我的项目,Xcode 9.2 显示编译错误:
ld: warning: directory not found for option '-F/Users/user/playgrounds/ios/app/build/Release-iphoneos/Alamofire'
ld: framework not found FBAudienceNetwork
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Podfile 是:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.2'
project 'app.xcodeproj'
target "app" do
use_frameworks!
pod 'GoogleMaps'
pod 'Charts'
pod "OAStackView"
pod 'Alamofire', '~> 4.4'
pod 'SwiftyJSON', '~> 3.1'
pod 'Appodeal', '1.3.9'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
end
尝试删除 remove Podfile.lock 和 pod update
但没有帮助。
将 FBAudienceNetwork 添加到 Podfile 会出现此问题:
[!] The 'Pods-app' target has frameworks with conflicting names: fbaudiencenetwork.framework.
如何解决这个问题?
最佳答案
将 Appodeal 更新到 2.x.x 解决了问题。
关于ios - Xcode 项目构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48644030/