Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Build fails on Phongap Build #243

Closed
Maistho opened this issue Apr 20, 2015 · 9 comments
Closed

iOS Build fails on Phongap Build #243

Maistho opened this issue Apr 20, 2015 · 9 comments

Comments

@Maistho
Copy link

Maistho commented Apr 20, 2015

iOS build fails on Phonegap Build.

logs at http://paste.ubuntu.com/10857532/

The relevant part seems to be

CompileC build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.o iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/SQLitePlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /project
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -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 -DCORDOVA_FRAMEWORK=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-generated-files.hmap -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-own-target-headers.hmap -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-all-target-headers.hmap -iquote /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-project-headers.hmap -I/project/build/include -I/project/build/usr/local/lib/include -I/project/build/UninstalledProducts/include -I/project/build -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/DerivedSources/armv7 -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/DerivedSources -F/project/build -include /var/folders/tb/t_cgml817b1bf28dzhy87l8m0000gp/C/com.apple.DeveloperTools/6.1-6A1052d/Xcode/SharedPrecompiledHeaders/iFiskeFiskekort-Prefix-cdyatkygwkaxctcaqbakaylqpppd/iFiskeFiskekort-Prefix.pch -MMD -MT dependencies -MF /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.d --serialize-diagnostics /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.dia -c /project/iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/SQLitePlugin.m -o /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.o
clang: error: no such file or directory: '/project/iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/SQLitePlugin.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
@DanailMinchev
Copy link

Are you using latest plugin ids?

<gap:plugin name="io.litehelpers.cordova.sqlite" version="0.7.6" />
or
<gap:plugin name="io.litehelpers.cordova.sqlite" version="0.7.6" source="plugins.cordova.io" />

If no, see: #238

@Maistho
Copy link
Author

Maistho commented Apr 20, 2015

Hm, I tried doing that but it still fails. Different message this time though.
New logs: http://paste.ubuntu.com/10857655/

What I think is relevant:

CompileC build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.o iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/SQLitePlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /project
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -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 -DCORDOVA_FRAMEWORK=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-generated-files.hmap -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-own-target-headers.hmap -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-all-target-headers.hmap -iquote /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-project-headers.hmap -I/project/build/include -I/project/build/usr/local/lib/include -I/project/build/UninstalledProducts/include -I/project/build -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/DerivedSources/armv7 -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/DerivedSources -F/project/build -include /var/folders/d8/mdlvdx_s34ldtls810v_sc4h0000gn/C/com.apple.DeveloperTools/6.1-6A1052d/Xcode/SharedPrecompiledHeaders/iFiskeFiskekort-Prefix-anrgovknilmuisgpaknxqytyiuvb/iFiskeFiskekort-Prefix.pch -MMD -MT dependencies -MF /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.d --serialize-diagnostics /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.dia -c /project/iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/SQLitePlugin.m -o /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/SQLitePlugin.o
clang: error: no such file or directory: '/project/iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/SQLitePlugin.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

CompileC build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/sqlite3.o iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/sqlite3.c normal armv7 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /project
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -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 -DCORDOVA_FRAMEWORK=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -fstrict-aliasing -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-generated-files.hmap -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-own-target-headers.hmap -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-all-target-headers.hmap -iquote /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/iFiskeFiskekort-project-headers.hmap -I/project/build/include -I/project/build/usr/local/lib/include -I/project/build/UninstalledProducts/include -I/project/build -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/DerivedSources/armv7 -I/project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/DerivedSources -F/project/build -include /var/folders/d8/mdlvdx_s34ldtls810v_sc4h0000gn/C/com.apple.DeveloperTools/6.1-6A1052d/Xcode/SharedPrecompiledHeaders/iFiskeFiskekort-Prefix-hkaljcslxgcckngedjqufjxmokkz/iFiskeFiskekort-Prefix.pch -MMD -MT dependencies -MF /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/sqlite3.d --serialize-diagnostics /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/sqlite3.dia -c /project/iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/sqlite3.c -o /project/build/iFiskeFiskekort.build/Release-iphoneos/iFiskeFiskekort.build/Objects-normal/armv7/sqlite3.o
clang: error: no such file or directory: '/project/iFiskeFiskekort/Plugins/io.litehelpers.cordova.sqlite/sqlite3.c'
clang: error: no input files

My config.xml line:

<gap:plugin name="io.litehelpers.cordova.sqlite" version="0.7.6" source="plugins.cordova.io" />

@DanailMinchev
Copy link

Are you using latest phonegap?
<preference name="phonegap-version" value="3.7.0" />

@Maistho
Copy link
Author

Maistho commented Apr 21, 2015

I am now, seems like I get the same issue. Can anyone else build iOS using pgb, and what settings do you use in that case?

@brodycj
Copy link
Contributor

brodycj commented Apr 21, 2015

One thing: if you are using PhoneGap Build Hydration, someone already reported problems.

@Maistho
Copy link
Author

Maistho commented Apr 21, 2015

Hydration is turned off.

I did however find a workaround. By changing the name of the app to start with an uppercase character and contain no spaces, it builds...
I'm thinking this might just be an issue with pgb, but the error only triggers with this plugin.

Will open an issue with phonegap build as well.

@brodycj
Copy link
Contributor

brodycj commented Apr 21, 2015

Thanks for your efforts, will be documented in README.md.

@Maistho
Copy link
Author

Maistho commented Apr 21, 2015

Issue open at PGB
phonegap/build#431

brodycj pushed a commit that referenced this issue Apr 21, 2015
… with app name (ref: #243); possible stability issue with SockJS client (ref: #196); retrieve of large data set can be too slow due to JSON (ref: #127); memory issue when adding large numbers of records (ref: #18)
@brodycj
Copy link
Contributor

brodycj commented Apr 21, 2015

Issue open at PGB
phonegap/build#431

👍

I'm thinking this might just be an issue with pgb, but the error only triggers with this plugin.

Looks like the same observation is reported in Wizcorp/phonegap-facebook-plugin#830

This limitation is now documented in README.md. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants