2014-04-16 3 views
0

내 애플리케이션에 GoogleProtobuf (2.5.0)를 추가하려고합니다. 내가 읽은 바에 따르면 가장 좋은 방법은 CocoaPod를 사용하는 것입니다. 그래서 CocoaPod를 시작하기위한 튜토리얼을 살펴 보았습니다. 내 프로젝트 폴더에 포드를 설치 한 곳까지 도달했고 프로젝트 작업 공간을 만들었습니다. 나는 프로젝트 작업 영역을 열고 구축/청소하려고 나는 다음과 같은 오류가 나타날 수CocoaPods를 사용하여 Xcode 5로 protobuf 컴파일

enter image description here

나는이에 newb입니다. 이것은 누구에게도 의미가 있습니까?

와우! 그것은 약간의 그림입니다.

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) 

내 Podfile이 포함되어 있습니다 :

내가있는 정보를 복사 할 수 있다면 나를 보자

내가 설치 실행하면, 이것은 출력
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$ 
+0

나는 여기서 지침을 따라 아무 쓸모가 없다 : http://www.mobinett.com/2013/09/20/ios-7-xcode-5-project-build-settings-for-architectures- and-arm64-support/ – Patricia

+0

이 SO 질문에 대한 추가 정보를 찾았습니다 : http://stackoverflow.com/questions/21263539/cocoa-pods-error-ld-library-not-found-for-lpods – Patricia

+0

그 질문은 저를 이끌었습니다. 이 페이지로 이동 : https://github.com/CocoaPods/CocoaPods/pull/1352 – Patricia

답변

3

좋아요, 그래서 저는 지난 두 번의 코멘트에서 제공된 두 개의 링크에서 많은 정보를 발견했습니다. 특히 this answer은 SO 질문에.

내 문제는 내 Pods Valid Architectures가 Valid Architectures가 내 프로젝트에있는 것과 동일해야한다는 것이 었습니다.

저는 하루 종일이 질문을 게시하면서 잠시 시간을 보냈습니다. 문제를 해결하는 데 도움이되는 답을 찾았습니다.

다른 사람들에게 도움이되기를 바랍니다. :-)

관련 문제