And*_*Dev 14 xcode ios cocoapods xcode6
首次涉足CocoaPods(我对此并不满意!).我按照所有说明进行操作.当我这样做时pod install,我得到的是:
分析依赖关系
下载依赖关系
使用AFNetworking(2.4.1)
使用Braintree(3.4.0)
生成Pods项目集成客户端项目[!]
MyProject [Debug]目标覆盖$(inherited)`标志中HEADER_SEARCH_PATHS定义的 构建设置Pods/Target Support Files/Pods-MyProject/Pods-MyProject.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the,或者
- 从目标中删除构建设置.[!]
MyProject [Debug]目标覆盖$(inherited)`标志中OTHER_LDFLAGS定义的构建设置Pods/Target Support Files/Pods-MyProject/Pods-MyProject.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the,或者
- 从目标中删除构建设置.[!]
MyProject [Release]目标覆盖$(inherited)`标志中HEADER_SEARCH_PATHS定义的 构建设置Pods/Target Support Files/Pods-MyProject/Pods-MyProject.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the,或者
- 从目标中删除构建设置.[!]
MyProject [Release]目标覆盖$(inherited)`标志中OTHER_LDFLAGS定义的构建设置Pods/Target Support Files/Pods-MyProject/Pods-MyProject.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the,或者
- 从目标中删除构建设置.
这是我的Podfile:
来源' https://github.com/CocoaPods/Specs.git '
目标'ActivFocus'做pod'Brainint'
#或者:pod'Brainree' ,'〜>
3.0.0'pod"AFNetworking","〜> 2.0"
结束
目标'ActivFocusTests'做pod'Braintree
'# Over:pod'Braintree ','〜>
3.0.0'pod"AFNetworking","〜> 2.0"
结束
我不知道如何遵循这个建议:
Run Code Online (Sandbox Code Playgroud)- Use the '$(inherited)' flag, or - Remove the build settings from the target.
编辑:这是我在尝试构建项目时得到的Xcode错误:
Ld /Users/randy/Library/Developer/Xcode/DerivedData/MyProject-epuhpnvywesozcamslrdbksivzae/Build/Products/Debug-iphonesimulator/MyProject.app/MyProject normal i386 cd/Users/randy/Development/MyProject/iOSApp/MyProject export IPHONEOS_DEPLOYMENT_TARGET = 7.1 export PATH ="/ Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator. platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/randy/Library/Developer/Xcode/DerivedData/MyProject-epuhpnvywesozcamslrdbksivzae/Build/Products/Debug-iphonesimulator -L/Users/randy/Development/MyProject/iOSApp/MyProject/Pods/Braintree/Braintree/PayPal/mSDK -L/Users/randy/Development/MyProject/iOSApp/MyProject -L/Users/randy/Development/MyProject/iOSApp/MyProj ect/MyProject/libs/ios_libs/simplify/vendor/ocmock -F/Users/randy/Library/Developer/Xcode/DerivedData/MyProject-epuhpnvywesozcamslrdbksivzae/Build/Products/Debug-iphonesimulator -F/Users/randy/Development/MyProject/iOSApp/MyProject/MyProject/libs/ios_libs/simplify -F/Users/randy/Development/MyProject/iOSApp/MyProject/MyProject -F/Users/randy/Development/MyProject/iOSApp/MyProject -filelist/Users/randy/Library/Developer/Xcode/DerivedData/Myived-epuhpnvywesozcamslrdbksivzae/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/i386/MyProject.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc -link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min = 7.1 -framework AVFoundation -framework CoreData -framework QuartzCore -framework MediaPlayer -framework CoreGraphics -framework UIKit -framework Foundation -lPods-MyProject -Xlinker -dependency_info -Xlinker /用户/兰迪/库/开发商/ Xcode中/ DerivedData/MyProject的-EPU hpnvywesozcamslrdbksivzae/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/i386/MyProject_dependency_info.dat -o/Users/randy/Library/Developer/Xcode/DerivedData/MyProject-epuhpnvywesozcamslrdbksivzae/Build/Products /调试iphonesimulator/MyProject.app/MyProject的
ld:找不到-lPods-ActivFocus clang的库:错误:链接器
命令失败,退出代码为1(使用-v查看调用)
小智 5
如果标题搜索路径没有手动覆盖,请尝试删除添加到项目中的pod配置文件.这可以在YourProject\Pods(而不是pods项目中找到,检查图像).尝试再次运行pod安装并检查.

如果您已手动添加标头路径,则忽略该警告并在搜索路径中添加继承标志,如下所示

| 归档时间: |
|
| 查看次数: |
7225 次 |
| 最近记录: |