[TIMOB-20541] Facebook module in SDK 5.2 is not 64 bit!
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-03-10T09:25:28.000+0000 |
Affected Version/s | Release 5.2.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Samie |
Assignee | Mostafizur Rahman |
Created | 2016-03-07T23:16:48.000+0000 |
Updated | 2017-03-22T21:45:23.000+0000 |
Description
Steps to Reproduce
1) Upgrade appcelerator and SDK to SDK 5.2
2) build your app
Actual Result
[INFO] : Optimizing .plist and .png files
[INFO] : Invoking xcodebuild
[ERROR] : * BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/armv7/Game normal armv7
[ERROR] : Ld build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/arm64/Game normal arm64
[ERROR] : (2 failures)
Expected Result
This should not appear. Before doing the upgrade the application was building fine. I have checked all other modules, and they do not cause build to fail, only the Facebook module does.
Attachments
Yep! There are lots of us affected by this!!! For the time being, I seem to be able to build using SDK 4.0.0RC5 on Mac / iOS ...on Android however, it builds just fine but the moment you actually call fb.authorize() the application hangs - again, works using 4.1.0 (Built on Windows) (...it may well work on other 4.x SDK releases but I can only say about the 2 I have used!) Thanks! Robin
Robin, I have not tried yet but are you able to build it on an iphone running ios9 since it is a 32bit module? Probably the reason why the older SDK works is because they do not require the modules to be 64 bit.
(Apple will reject any app to the App Store running 32 bit modules)
Sorry, I only have devices running 7.x (iPhone 4) & 8.x (iPad Mini) It definitely works on the iP4 / 7.x using SDK 4.0.0 RC5 :) I can't test the iPad yet as it's playing up! ;)
Hello, I just tested the facebook module Version 5.0.1 in SDK 5.2.0.GA. The sample code in the module example is working as expected. I used the sample example comes with the module which should be in .../Users/..../Library/Application Support/Titanium/modules/iphone/facebook/5.0.1/example. I used the sample code and logged in through "Custome Log In". The app did not crash and there is no error in the console. See the attachment. Use facebook module version "5.0.1". To check which module has 64bit support try running "ti-64" in project terminal. Thanks.
Ok an update, I downloaded the package to do the ti-64 command after doing ti-64, all of my packages are 64 bit ti.draggable 1.3.1 (project) armv7 i386 2.0.4 (project) armv7 i386 x86_64 arm64 co.realtime.ortc 1.4 (project) armv7 i386 x86_64 arm64 com.semanticpress.tidoubleslider 0.2 (project) armv7 i386 x86_64 arm64 com.yydigital.tintswitch 0.2.1 (project) armv7 i386 x86_64 arm64 dk.napp.appearance 1.3.0 (project) armv7 i386 x86_64 arm64 com.widbook.statusbar 1.1 (project) armv7 arm64 i386 x86_64 dk.napp.social 1.8.1 (project) armv7 i386 x86_64 arm64 ti.raven 1.0.0 (project) armv7 i386 x86_64 arm64 guy.mcdooooo.tipop 1.0.5 (project) armv7 i386 x86_64 arm64 com.logicallabs.inappproducts 1.0.3 (project) armv7 i386 x86_64 arm64 facebook 4.0.0 (project) armv7 i386 x86_64 arm64 When I do ti-64 global new relic isn't, is this causing the problem? com.appcelerator.apm 1.1.1 armv7 arm64 i386 x86_64 com.appcelerator.urlSession 1.0.0 i386 armv7 armv7s arm64 1.0.1 i386 armv7s armv7 arm64 1.1.0 armv7 i386 x86_64 arm64 1.1.1 armv7 i386 x86_64 arm64 2.0.0 armv7 i386 x86_64 arm64 facebook 3.1.1 armv7 armv7s i386 3.2.0 armv7 arm64 i386 x86_64 4.0.5 armv7 i386 x86_64 arm64 5.0.1 armv7 i386 x86_64 arm64 ti.coremotion 1.0.1 i386 armv7s armv7 arm64 1.1.0 armv7 i386 x86_64 arm64 2.0.0 armv7 i386 x86_64 arm64 ti.map 2.0.1 armv7 i386 2.0.2 armv7 i386 2.0.4 armv7 i386 2.2.0 armv7 arm64 i386 x86_64 2.3.1 armv7 i386 x86_64 arm64 2.4.1 armv7 i386 x86_64 arm64 2.5.2 armv7 i386 x86_64 arm64 ti.newrelic 1.0 armv7 i386 ti.safaridialog 1.0.1 armv7 i386 x86_64 arm64 1.0.2 armv7 i386 x86_64 arm64 1.0.3 armv7 i386 x86_64 arm64 1.0.5 armv7 i386 x86_64 arm64 ti.touchid 1.0 armv7 i386 x86_64 arm64 1.1.0 armv7 arm64 i386 x86_64 1.2.0 armv7 i386 x86_64 arm64 I am not using new relic in my app
I have deleted all of the non 64 bit modules, but still no luck - it does not build if I use the ti.facebook module, but builds fine without it
Deleted appcelerator , reinstalled it - same result: [ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : Ld build/Intermediates/newide.build/Debug-iphonesimulator/newide.build/Objects-normal/x86_64/newide normal x86_64 [ERROR] : Ld build/Intermediates/newide.build/Debug-iphonesimulator/newide.build/Objects-normal/i386/newide normal i386 [ERROR] : (2 failures)
Hey everyone, Some good news, I have managed to solve this problem! Basically this problem occurs if your XCODE version is not the latest version (currently version 7.2.1)! Here is the catch, to install that version if you are on a mac you will need to upgrade (if you are not on it) to El Capitan. Your application should then build as normal. The only problem you will potentially face after building is the following: [INFO] : *** Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0' [INFO] : *** First throw call stack: This is unrelated to this ticket, but if appcelerator can answer how to resolve that, that would be great.
Closing ticket as invalid with reference to previous comments.