我有一个使用以下Podfile的项目:
target 'XXX' do
pod 'Google/Analytics'
pod 'Google/SignIn'
pod 'HockeySDK', '~> 4.0.1'
pod 'GoogleMaps'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
pod 'TesseractOCRiOS', '4.0.0'
pod 'TOCropViewController'
end
这可以完美地编译和运行。
一旦我执行$ pod更新,我会收到很多更新,请参阅下文:
Analyzing dependencies
Downloading dependencies
Installing FirebaseAnalytics (3.2.0)
Installing FirebaseInstanceID (1.0.6)
Installing Google 3.0.3 (was 2.0.3)
Installing Google-Mobile-Ads-SDK 7.8.1 (was 7.8.0)
Using GoogleAnalytics (3.14.0)
Installing GoogleAppUtilities 1.1.1 (was 1.1.0)
Installing GoogleAuthUtilities 2.0.1 (was 2.0.0)
Installing GoogleInterchangeUtilities 1.2.1 (was 1.2.0)
Using GoogleMaps (1.13.2)
Installing GoogleNetworkingUtilities 1.2.1 (was 1.2.0)
Installing GoogleSignIn 4.0.0 (was 3.0.0)
Installing GoogleSymbolUtilities 1.1.1 (was 1.1.0)
Installing GoogleUtilities 1.3.1 (was 1.2.0)
Using HockeySDK (4.0.1)
Using TOCropViewController (1.3.7)
Using TesseractOCRiOS (4.0.0)
Generating Pods project
Integrating client project
Sending stats
Sending stats
Pod installation complete! There are 7 dependencies from the Podfile and 16
total pods installed.
然后我尝试构建并收到以下错误:
ld: file not found: /Users/user/Desktop/Personal/xxx/Pods/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
所以我决定删除其他链接器标志($(PODS_ROOT)/GoogleUtilities/Libraries/libGTM_NSData+zlib_external.a)中的条目,该问题消失了,但现在我收到以下错误:
ld: file not found: -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在xcode 7上。
任何想法?这让我疯了。
感谢。
答案 0 :(得分:0)
我自己解决了这个问题。
我做的是:
然后我重新启动了xcode,所有这些都再次像魅力一样。
唷!