-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Crash phonegap build on 0.11.0 #929
Comments
@bluepioupiou Assuming you installed like;
iOS is broken because plugman (the tool behind the CLI) cannot publish a .framework file and retain the sym links. ***So after your build command you need to open the Xcode project and re-add the Facebook.framework. :( This is the full error you should get:
That Android error is strange. I'm looking into it now. |
Hmmm the iOS erreur only appeared when I was using this plugin on a mac to build directly on my iPhone for test purpose. I've used the workaround already. But here it's with phonegap build, which with the 0.10.1 or older version never caused me an issue |
@bluepioupiou do you have a larger error console output for iOS? I can't test PhoneGap Build we don't support it :/ |
of course, thanks for your help CompileC build/Unlishtest.build/Release-iphoneos/Unlishtest.build/Objects-normal/armv7/FacebookConnectPlugin.o Unlishtest/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/Unlishtest.build/Release-iphoneos/Unlishtest.build/Objects-normal/armv7/CDVSplashScreen.o Unlishtest/Plugins/org.apache.cordova.splashscreen/CDVSplashScreen.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/Unlishtest.build/Release-iphoneos/Unlishtest.build/Objects-normal/armv7/CDVInAppBrowser.o Unlishtest/Plugins/org.apache.cordova.inappbrowser/CDVInAppBrowser.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/Unlishtest.build/Release-iphoneos/Unlishtest.build/Objects-normal/armv7/CDVDevice.o Unlishtest/Plugins/org.apache.cordova.device/CDVDevice.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/Unlishtest.build/Release-iphoneos/Unlishtest.build/Objects-normal/armv7/UIImage+CropScaleOrientation.o Unlishtest/Plugins/org.apache.cordova.camera/UIImage+CropScaleOrientation.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler ** BUILD FAILED ** The following build commands failed: |
@bluepioupiou Regarding Android: I cannot reproduce the Android error from a fresh project using:
|
@bluepioupiou yeah for iOS you have the error, not at the bottom of your output but a little further up:
That's the same error - missing link to the Facebook.framework |
Hmmm ok I get the error, but as I said, it works perfectly with the 0.10.1 version on PGB and not with the 0.11.0... |
I've also hit this problem (using PhoneGap Build). My config.xml looks like this:
The same approach works for version 0.9.0, but not 0.10.1. I know there's no longer support for PhoneGap Build, but if anyone could help point me in the right direction it would be a big help! What has changed between 0.9.0 and 0.10.1 that breaks the build? I'm happy to contribute and upload my own fork to cordova.io to get this working, but I don't really know where to start. |
Removing |
Thanks for your help. It indeed works well for android but still not on iOS. Here is the error The following build commands failed: |
I found that removing the I'm not sure why PGB is using @aogilvie Does this solution work for you? I'll happily make a pull request if so. @imaffett Is there a better way to fix this? You have a much better understanding of the android build tools than I do. |
hi @jfaris
although Android build success but iOS still build fail |
@bau720123 It builds for me on both iOS and Android using that custom version. Can you build locally? |
hi @jfaris |
@bau720123 Can you post a link to a copy of the build log for iOS? |
hi @jfaris |
hi @jfaris |
@bau720123 Works for me... I don't know what is causing that error for you. I tried using PhoneGap 3.7.0 and 3.6.3 and both work. Sorry I can't help more. |
Since the libraries are symlink if you try to go into the library platforms/ios/FacebookSDK.framework/Versions/Current you will see your problem. You will need fix all the symlink present in |
hi @vkeepe |
hi @jfaris |
It is not issue of config.xml. Main issue is how git handles symlink: Go to the folder on your local drive where you got the plugin via git clone. For example you can try to go inside a directory FacebookSDK.framework/Resources You will notice error (Mac in my case). The issue is when you get the symlink from git via clone. So in mac you can remove the folder Resources and do You need to repeat same for Headers, Resources & Versions/Current (Points to A). |
hi @vkeepe |
HI @bau720123, @vkeepe, @aogilvie and @jfaris, I'm also having this issue. I tried had "com.phonegap.plugins.facebookconnect" version 0.9.0 in my config.xml and it wouldn't build for iOS using the phonegap build service. I then heard about the apparent fix via using "jfaris.com.phonegap.plugins.facebookconnect" version "0.11.0-jfaris.0" and it still does not build for iOS. See my build log at: http://www.coletek.org/build.txt Can anyone please advise how to make it work with "jfaris.com.phonegap.plugins.facebookconnect" or even better with "com.phonegap.plugins.facebookconnect". I logged this issue with phonegap 2 months ago, and still no fix from the leads. See my original post at: |
@coletek - For the Intel XDK, we locked it down to a previous version that we know works. For us, that version is 0.10.1 . We cannot get 0.11.x to work (iOS or Android) |
Hi @imaffett - are you talking about the version for "com.phonegap.plugins.facebookconnect" or "jfaris.com.phonegap.plugins.facebookconnect" When using the phonegap cloud build service, building for iOS - 0.9.0 of "com.phonegap.plugins.facebookconnect" doesn't work for us, and neither does "0.11.0-jfaris.0" of "jfaris.com.phonegap.plugins.facebookconnect" Thx mate. |
@coletek - this project we are on - "com.phonegap.plugins.facebookconnect" |
@coletek @bau720123 Your build failures look like they might be caused by phonegap/build#431 (reported in this project as #830) If you can, try changing your app name to start with an uppercase letter: iCEPIKK -> ICEPIKK |
Hi @jfaris - interesting.... Sounds promising. Do I have to change all the .js files, or just the name in config.xml? |
Just the name in config.xml, as far as I know. |
Hi @jfaris n @bau720123 - OMFG it now works.... 5 months later n it is working... all due to a useless lowercase char bug... thx guys... |
thanks @jfaris and @coletek
but !!!
it will let the Android build fail my conclusion is PS |
hi @jfaris
|
Using PGB with cli-6.3.0 I get this error: In my config.xml I have: Any ideas how this can be solved? thanks |
Now that the 0.11.0 version is on corodva registry, I've got an error trying to build it with phonegap
is that normal ?
The text was updated successfully, but these errors were encountered: