使用CocoaPods使用Xcode 5编译protobuf
我正在尝试将GoogleProtobuf(2.5.0)添加到我的应用程序中。从我所读到的,最好的方法是使用椰子荚。所以我看了一本关于椰子荚的入门教程。我一直到在我的项目文件夹中运行pod安装的地方,它创建了项目工作区。我打开项目工作区并尝试清理/构建,但收到以下错误: 我是这方面的新手。这对任何人都有意义吗 哇!这是一张小照片。 让我看看是否可以将信息复制到:使用CocoaPods使用Xcode 5编译protobuf,xcode,cocoapods,protocol-buffers,Xcode,Cocoapods,Protocol Buffers,我正在尝试将GoogleProtobuf(2.5.0)添加到我的应用程序中。从我所读到的,最好的方法是使用椰子荚。所以我看了一本关于椰子荚的入门教程。我一直到在我的项目文件夹中运行pod安装的地方,它创建了项目工作区。我打开项目工作区并尝试清理/构建,但收到以下错误: 我是这方面的新手。这对任何人都有意义吗 哇!这是一张小照片。 让我看看是否可以将信息复制到: Resolving target dependencies Pods was rejected as an implicit depe
Resolving target dependencies
Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'arm64' didn't contain all required architectures 'armv7'
Write auxiliary files
Ld /Users/pdl/Library/Developer/Xcode/DerivedData/Demo-ggwchkzudvcbibdmaknlspphbkbr/Build/Products/Debug-iphoneos/Demo.app/Demo normal armv7
cd "/Users/pdl/Development/Application-Demos/iPhone_Demos/Demo"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/pdl/Library/Developer/Xcode/DerivedData/Demo-ggwchkzudvcbibdmaknlspphbkbr/Build/Products/Debug-iphoneos -L/Library/FlurryAnalytics/Flurry_iPhone_SDK_viPhone_4/Flurry-iOS-4.3.1/Flurry -F/Users/pdl/Library/Developer/Xcode/DerivedData/Demo-ggwchkzudvcbibdmaknlspphbkbr/Build/Products/Debug-iphoneos -F/Library/OpenCV -F/Users/pdl/Library/Developer/Xcode/DerivedData/QlmMobileDeviceSample-cuzqlikbteeedbeaonfqofugyyql/Build/Products/Release-iphoneos -F/Users/pdl/Library/Developer/Xcode/DerivedData/Dummy-iOS-gumpxuupcpajbvamflgypgfwjshp/Build/Products/Release-iphoneuniversal -filelist /Users/pdl/Library/Developer/Xcode/DerivedData/Demo-ggwchkzudvcbibdmaknlspphbkbr/Build/Intermediates/Demo.build/Debug-iphoneos/Demo.build/Objects-normal/armv7/Demo.LinkFileList -dead_strip -ObjC -lstdc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework Dummy-iOS-1.1.0 -lFlurry_4.3.1 -framework QlmLicenseMobile -lc++ -framework opencv2 -framework AdSupport -lz -lxml2.2 -framework Security -framework SystemConfiguration -framework AssetsLibrary -framework CoreGraphics -framework UIKit -framework Foundation -lPods -Xlinker -dependency_info -Xlinker /Users/pdl/Library/Developer/Xcode/DerivedData/Demo-ggwchkzudvcbibdmaknlspphbkbr/Build/Intermediates/Demo.build/Debug-iphoneos/Demo.build/Objects-normal/armv7/Demo_dependency_info.dat -o /Users/pdl/Library/Developer/Xcode/DerivedData/Demo-ggwchkzudvcbibdmaknlspphbkbr/Build/Products/Debug-iphoneos/Demo.app/Demo
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的播客文件包含以下内容:
platform :ios, '7.0'
pod 'GoogleProtobuf', '~> 2.5.0'
当我运行安装时,以下是输出:
pdl-mbp:Demo pdl$ pod install
Analyzing dependencies
CocoaPods 0.32.1 is available.
Downloading dependencies
Installing GoogleProtobuf (2.5.0)
Generating Pods project
Integrating client project
[!] From now on use `Demo.xcworkspace`.
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
[!] The target `Demo [Debug]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `Demo [Debug - Release]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `Demo [Debug - Release - Ad Hoc Distribution]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
pdl-mbp:Demo pdl$
好的,我在上两篇评论中提供的两个链接中找到了很多信息。特别是关于所谓的问题 我的问题是,我的POD有效架构必须与我的项目中的有效架构相同 我花了一整天的时间在这个问题上,当我发布这个问题的时候,我找到了一个帮助我解决问题的答案
我希望这对其他人有帮助!:-) 好的,我在上两篇评论中提供的两个链接中找到了很多信息。特别是关于所谓的问题 我的问题是,我的POD有效架构必须与我的项目中的有效架构相同 我花了一整天的时间在这个问题上,当我发布这个问题的时候,我找到了一个帮助我解决问题的答案
我希望这对其他人有帮助!:-) 检查所有项目库。如果你发现有人失踪(红色),请特别更新。或者,您可以通过进入projects目录,使用命令“pod update”彻底更新所有库。它解决了我的问题。检查所有项目库。如果你发现有人失踪(红色),请特别更新。或者,您可以通过进入projects目录,使用命令“pod update”彻底更新所有库。它解决了我的问题。我按照此处的说明进行操作,但没有结果:我在该SO问题上找到了更多信息:该问题将我带到了该页面:我按照此处的说明进行操作,但没有结果:我在该SO问题上找到了更多信息:该问题将我带到了该页面: