- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
首次涉足 CocoaPods(我对此不是很满意!)。我遵循了所有的指示。当我执行 pod install
时,这是我得到的:
Analyzing dependencies
Downloading dependencies
Using AFNetworking (2.4.1)
Using Braintree (3.4.0)
Generating Pods project Integrating client project[!] The
MyProject [Debug]
target overrides theHEADER_SEARCH_PATHS
build setting defined inPods/Target Support
$(inherited)` flag, or
Files/Pods-MyProject/Pods-MyProject.debug.xcconfig'. This can lead
to problems with the CocoaPods installation
- Use the
- Remove the build settings from the target.[!] The
MyProject [Debug]
target overrides theOTHER_LDFLAGS
build setting defined inPods/Target Support
$(inherited)` flag, or
Files/Pods-MyProject/Pods-MyProject.debug.xcconfig'. This can lead
to problems with the CocoaPods installation
- Use the
- Remove the build settings from the target.[!] The
MyProject [Release]
target overrides theHEADER_SEARCH_PATHS
build setting defined inPods/Target Support
$(inherited)` flag, or
Files/Pods-MyProject/Pods-MyProject.release.xcconfig'. This can lead
to problems with the CocoaPods installation
- Use the
- Remove the build settings from the target.[!] The
MyProject [Release]
target overrides theOTHER_LDFLAGS
build setting defined inPods/Target Support
$(inherited)` flag, or
Files/Pods-MyProject/Pods-MyProject.release.xcconfig'. This can lead
to problems with the CocoaPods installation
- Use the
- Remove the build settings from the target.
这是我的 Pod 文件:
source 'https://github.com/CocoaPods/Specs.git'
target 'ActivFocus' do
pod 'Braintree' # Alternatively: pod 'Braintree', '~> 3.0.0'
pod "AFNetworking", "~> 2.0"
end
target 'ActivFocusTests' do
pod 'Braintree' # Alternatively: pod 'Braintree', '~> 3.0.0'
pod "AFNetworking", "~> 2.0"
end
我不知道如何遵循建议:
- 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/MyProject/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/MyProject-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 /Users/randy/Library/Developer/Xcode/DerivedData/MyProject-epuhpnvywesozcamslrdbksivzae/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/Debug-iphonesimulator/MyProject.app/MyProject
ld: library not found for -lPods-ActivFocus clang: error: linker
command failed with exit code 1 (use -v to see invocation)
最佳答案
如果没有对 header 搜索路径进行手动覆盖,请尝试删除添加到项目中的 pod 配置文件。这可以在 YourProject\Pods
中找到(而不是在 pods 项目中,检查图像)。尝试再次运行 pod install 并检查。
如果您手动添加了标题路径,则忽略警告并在搜索路径中添加一个继承标志,如下所示
关于ios - CocoaPods 报错 pod install HEADER_SEARCH_PATHS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26750523/
我有一个链接到我要修改的库的第三方项目(有源代码,不能真正修改项目本身)。 我想重建第 3 方应用程序,但想附加一个额外的 header 搜索路径,以便它使用我的库版本,而不是默认位置。 但是我找不到
首次涉足 CocoaPods(我对此不是很满意!)。我遵循了所有的指示。当我执行 pod install 时,这是我得到的: Analyzing dependencies Downloading de
我正在从事的一些项目依赖于一组 C 库,我想用出色的 CocoaPods 来管理这些库。每个库在结构深处都有私有(private)头文件,如 ctype.h、errno.h、string.h。我需要将
我正在尝试使用安装后 Hook 将 $(PLATFORM_DIR)/Developer/Library/Frameworks 路径添加到 Specta 目标 header 搜索路径。这显然不是至关重要
我是一名优秀的程序员,十分优秀!