grunt-phonegap
grunt-phonegap copied to clipboard
After install latest version xCode (Version 6.0.1 (6A317)), phonegap:build not working anymore, any idea?
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
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.
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 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.
+1 Solved it for me
+1 Deleting the folder worked.
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.
Deleting worked for me as well...!!! Thanks...!!!
Deleted the folder, still getting the error. Was there anything else you all did? What builds of XCode6 / Phonegap are you on?
Deleting the folder worked for me :+1:
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 .
Worked for me thanks!!!
Sweet, Thanks!
+1 saved me a lot of time.