ios - Xcode 项目构建失败

标签 ios xcode cocoapods

尝试构建我的项目,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/

相关文章:

ios - Xcode 10.2更新问题构建系统错误-1 : Unable to load contents of file list: input/output xcfilelist

ios - 从 Foursquare URL 加载图像到 UIImageView

ios - 无法检索相机胶卷 Swift 5 中视频的 URL

ios - 日历-isDateInToday:date 00:15今天不在吗?

ios - Xcode 6.3.2 应用程序在加载启动屏幕后崩溃

xcode - CocoaPods:App.xcworkspace 不存在

ios - NSDateFormatter.dateFromString for 循环,用@try处理无效格式

iphone - 维护 UISegmentedControl 中的选择

ios - Xcode Storyboard : Button image gets stretched with autolayout

ios - Xcode工作区中的重复项目