Cocoapods headers not found when creating app

For the past few days I have been trying to create an application that keeps crashing and gives a file not found message. A friend of mine can create an application on his computer, but I tried on 3 computers and all 3 gave me the same error. I have tried uninstalling and reinstalling the cocoapods gem by deleting containers and podfile.lock, and reinstalling and updating containers with no luck. When I go to the pods folder I can see all the files and even autocomplete the filename in the file prefix.pch

(in case of a problem). I am using the same cocoapods as my friend (v0.34.4) and Xcode v6.1.

Also worth noting - all tags XCTest.framework

, Tests.xctest

and libpods

(but not extended folders) are all red.

Here is the error I get when compiling:

ProcessPCH /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.pch app/app-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/name/app
export LANG=en_US.US-ASCII
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 -x objective-c-header -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/name/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=7.1 -iquote /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-generated-files.hmap -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-own-target-headers.hmap -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-all-target-headers.hmap -iquote /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/appTests-project-headers.hmap -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/DerivedSources/x86_64 -I/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/app.build/Debug-iphonesimulator/appTests.build/DerivedSources -F/Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks -MD -MT dependencies -MF /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.d -c /Users/name/app/app/app-Prefix.pch -o /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.pch --serialize-diagnostics /Users/name/Library/Developer/Xcode/DerivedData/app-dojnoizofbzbmmeascbukgzbsthh/Build/Intermediates/PrecompiledHeaders/app-Prefix-ahotoqoympyvtcaartebeekroqoj/app-Prefix.pch.dia 
/Users/name/app/app/app-Prefix.pch:17:13: fatal error: 'Parse/Parse.h' file not found
#import <Parse/Parse.h>
        ^1 error generated.

      

+3


source to share


1 answer


I finally managed to get the build application.

Here's what I did: I went to Product -> Scheme -> Edit Schemes Afterwards I unchecked the Target -> Tests box for "Analysis".

screenshot



As the build was previously unsuccessful at this point, so by unchecking the checkbox I was able to run it without issue. After spending time using it over the past few hours, I believe it is working fine and can vouch that the issues previously mentioned by xCode have not affected real world usage (the product is on the market with many users).

Thanks to those who previously helped.

+1


source







All Articles