2014-11-05 11 views
10

कोकोपोड्स में पहला प्रयास (और मैं इससे बहुत खुश नहीं हूं!)। मैंने सभी निर्देशों का पालन किया। जब मैं pod install ऐसा करते हैं मैं क्या मिलता है:कोकोपोड्स त्रुटि पॉड स्थापित करें HEADER_SEARCH_PATHS

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 the HEADER_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-MyProject/Pods-MyProject.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)` flag, or
- Remove the build settings from the target.

[!] The MyProject [Debug] target overrides the OTHER_LDFLAGS build setting defined in Pods/Target Support Files/Pods-MyProject/Pods-MyProject.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)` flag, or
- Remove the build settings from the target.

[!] The MyProject [Release] target overrides the HEADER_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-MyProject/Pods-MyProject.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)` flag, or
- Remove the build settings from the target.

[!] The MyProject [Release] target overrides the OTHER_LDFLAGS build setting defined in Pods/Target Support Files/Pods-MyProject/Pods-MyProject.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)` flag, or
- Remove the build settings from the target.

यहाँ मेरी Podfile है:

- Use the '$(inherited)' flag, or 
- Remove the build settings from the target. 

संपादित करें:

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

मैं कैसे सुझाव का पालन करने के लिए पता नहीं है यह एक्सकोड त्रुटि है जो मुझे इस परियोजना के निर्माण के दौरान प्राप्त करने का प्रयास करते समय प्राप्त होती है:

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)

+0

आप इस @ usr55410 हल के रूप में खोज पथ में एक विरासत झंडा जोड़ें। – sateesh

+0

क्या आपने 'पॉड इंस्टॉल' से पहले 'पॉड सेटअप' का प्रयास किया था? – polo987

+0

इन चरणों को आजमाएं http://stackoverflow.com/a/37341045/3472073 –

उत्तर

4

यदि शीर्षलेख खोज पथ के लिए कोई मैन्युअल ओवरराइड नहीं किया गया है, तो अपनी प्रोजेक्ट में जो पॉड कॉन्फ़िगरेशन फ़ाइलों को जोड़ा गया है उसे हटाने का प्रयास करें। यह YourProject\Pods पर पाया जा सकता है (और फोड प्रोजेक्ट में नहीं, छवि की जांच करें)। एक बार फिर से स्थापित पॉड स्थापित करने का प्रयास करें और जांचें।

Pod Config File

आप मैन्युअल रूप से शीर्ष लेख पथ को शामिल किया है, तो चेतावनी को अनदेखा और

नीचे

Inherited Flag to the header search path

+0

हाय मैं उस विंडो को कैसे प्राप्त करूं? मुझे समस्या है लेकिन पॉड कॉन्फ़िगरेशन को हटाना और फिर इंस्टॉल करना काम नहीं करता है इसलिए मैं PODS_ROOT चीज़ मैन्युअल रूप से जोड़ने का प्रयास करना चाहता हूं। – VAAA

संबंधित मुद्दे