grunt-phonegap icon indicating copy to clipboard operation
grunt-phonegap copied to clipboard

After install latest version xCode (Version 6.0.1 (6A317)), phonegap:build not working anymore, any idea?

Open TianleZhang opened this issue 10 years ago • 13 comments

Here are part of the log

CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVPlugin.o Classes/CDVPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd "/Users/admin/Documents/cordova project/GruntTest/build/platforms/ios/CordovaLib" 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:/usr/local/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -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 -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=6.0 -iquote /Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-generated-files.hmap -I/Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-project-headers.hmap -I/Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/build/emulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/DerivedSources/i386 -I/Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/DerivedSources -F/Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/build/emulator -DDEBUG -include /var/folders/19/lw1schm90x59y30bqptr6p3w0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/CordovaLib_Prefix-ehthuycspqshmzelwcvhwjpoolep/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVPlugin.d --serialize-diagnostics /Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVPlugin.dia -c /Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/Classes/CDVPlugin.m -o /Users/admin/Documents/cordova\ project/GruntTest/build/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVPlugin.o fatal error: file '/Users/admin/Documents/cordova project/GruntTest/build/platforms/ios/CordovaLib/CordovaLib_Prefix.pch' has been modified since the precompiled header '/var/folders/19/lw1schm90x59y30bqptr6p3w0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/CordovaLib_Prefix-ehthuycspqshmzelwcvhwjpoolep/CordovaLib_Prefix.pch.pch' was built note: please rebuild precompiled header '/var/folders/19/lw1schm90x59y30bqptr6p3w0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/CordovaLib_Prefix-ehthuycspqshmzelwcvhwjpoolep/CordovaLib_Prefix.pch.pch' 1 error generated.

** BUILD FAILED **

The following build commands failed: CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVURLProtocol.o Classes/CDVURLProtocol.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVInvokedUrlCommand.o Classes/CDVInvokedUrlCommand.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVWhitelist.o Classes/CDVWhitelist.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/NSDictionary+Extensions.o Classes/NSDictionary+Extensions.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVPluginResult.o Classes/CDVPluginResult.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/NSData+Base64.o Classes/NSData+Base64.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/NSMutableArray+QueueAdditions.o Classes/NSMutableArray+QueueAdditions.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVPlugin.o Classes/CDVPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (8 failures) { [Error: /Users/admin/Documents/cordova project/GruntTest/build/platforms/ios/cordova/build: Command failed with exit code 65] code: 65 } [error] /Users/admin/Documents/cordova project/GruntTest/build/platforms/ios/cordova/build: Command failed with exit code 65

TianleZhang avatar Sep 24 '14 14:09 TianleZhang

Even i am facing this problem after upgrading to xcode 6.0.1 version. Phonegap build fails exactly with same error as above. Please somebody help ASAP !!!! my releases is holding due to this issue.

swapnarachapalli avatar Oct 07 '14 18:10 swapnarachapalli

Hi , I found the solution by googling more. If you delete the folder '/var/folders/19/lw1schm90x59y30bqptr6p3w0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders and build again it works , Also you can open the xcode project and change PreCompile Header prefix to NO , that will also help.

swapnarachapalli avatar Oct 07 '14 19:10 swapnarachapalli

@swapnarachapalli I really searched everywhere for how to turn off the precompiled headers option but it will definitely work if you delete the folder listed in the error message.

a-r-d avatar Oct 07 '14 20:10 a-r-d

+1 Solved it for me

bitflower avatar Oct 08 '14 10:10 bitflower

+1 Deleting the folder worked.

kraihn avatar Oct 10 '14 12:10 kraihn

Thank you for the help!! Deleting worked for me also. Took me a little bit to find out where the files were to delete, but finally found them in xcode under the build settings section. Thanks again.

oltimer avatar Oct 17 '14 01:10 oltimer

Deleting worked for me as well...!!! Thanks...!!!

adiktz avatar Oct 30 '14 06:10 adiktz

Deleted the folder, still getting the error. Was there anything else you all did? What builds of XCode6 / Phonegap are you on?

runspired avatar Oct 30 '14 14:10 runspired

Deleting the folder worked for me :+1:

mcneela86 avatar Nov 16 '14 11:11 mcneela86

try to set this environment variable GCC_PRECOMPILE_PREFIX_HEADER=NO , this should turn off the precompile headers.

On Wed, Oct 8, 2014 at 1:49 AM, Aaron Decker [email protected] wrote:

@swapnarachapalli https://github.com/swapnarachapalli I really searched everywhere for how to turn off the precompiled headers option but it will definitely work if you delete the folder listed in the error message.

— Reply to this email directly or view it on GitHub https://github.com/logankoester/grunt-phonegap/issues/114#issuecomment-58253891 .

swapnarachapalli avatar Nov 17 '14 04:11 swapnarachapalli

Worked for me thanks!!!

derng avatar Nov 18 '14 14:11 derng

Sweet, Thanks!

eddygee avatar Nov 28 '14 16:11 eddygee

+1 saved me a lot of time.

tosha9 avatar Dec 10 '14 16:12 tosha9