136
Extension Ideas / Not same lib for iphoneos and iphonesim [QUESTION]
« on: November 15, 2013, 06:35:49 pm »
Dears,
I'm working on Android and iOS Facebook Extension on OpenFL platform, starting from GeorgeN Android Facebook extension.
After studing OpenFL and iOS dynamics and taking inspiration from AdMob Extension from Abliblablobla I'm able to compile an OpenFL Facebook extension for iOS. But I can compile it only for device or for simulator, I can't compile in both way.
Facebook iOS SDK do not supply a .a lib like AdMob. To obtain libfacebook_ios_sdk.a you must compile source. During compile I'm able to obtain many types of libfacebook_ios_sdk.a:
but I cannot obtain a libfacebook_ios_sdk.a working for both iphoneos and iphonesimulator.
Under Release-universal folder I have a file without extension called FacebookSDK. I do not know, I'm a noob in iOS programming, if there's a way to get out a "universal" .a library from this file.
Anyway I'm thinking to solve the problem using tags in include.xml file using different tags to import libfacebook_ios_sdk.a for iphonesim and iphoneos.
I do not know if it's possible with OpenFL or Stencyl tags but I want to write something like that:
Obliviously these dependancy are not correct. Someone known if there's a good way to do that?
Hope this post can explain well issue I'm trying to face. Please ask me about eventual not clear part.
Thanks in advance for help and for your time, David.
I'm working on Android and iOS Facebook Extension on OpenFL platform, starting from GeorgeN Android Facebook extension.
After studing OpenFL and iOS dynamics and taking inspiration from AdMob Extension from Abliblablobla I'm able to compile an OpenFL Facebook extension for iOS. But I can compile it only for device or for simulator, I can't compile in both way.
Facebook iOS SDK do not supply a .a lib like AdMob. To obtain libfacebook_ios_sdk.a you must compile source. During compile I'm able to obtain many types of libfacebook_ios_sdk.a:
Code: [Select]
.//Debug-iphoneos/libfacebook_ios_sdk.a
.//Debug-iphonesimulator/libfacebook_ios_sdk.a
.//Debug64-iphoneos/libfacebook_ios_sdk.a
.//Debug64-iphonesimulator/libfacebook_ios_sdk.a
.//facebook-ios-sdk.build/Debug-iphoneos/facebook-ios-sdk.build/Objects-normal/armv7/libfacebook_ios_sdk.a
.//facebook-ios-sdk.build/Debug-iphoneos/facebook-ios-sdk.build/Objects-normal/armv7s/libfacebook_ios_sdk.a
.//facebook-ios-sdk.build/Release-iphoneos/facebook-ios-sdk.build/Objects-normal/armv7/libfacebook_ios_sdk.a
.//facebook-ios-sdk.build/Release-iphoneos/facebook-ios-sdk.build/Objects-normal/armv7s/libfacebook_ios_sdk.a
.//Release-iphoneos/libfacebook_ios_sdk.a
.//Release-iphonesimulator/libfacebook_ios_sdk.a
.//Release64-iphoneos/libfacebook_ios_sdk.a
.//Release64-iphonesimulator/libfacebook_ios_sdk.a
but I cannot obtain a libfacebook_ios_sdk.a working for both iphoneos and iphonesimulator.
Under Release-universal folder I have a file without extension called FacebookSDK. I do not know, I'm a noob in iOS programming, if there's a way to get out a "universal" .a library from this file.
Anyway I'm thinking to solve the problem using tags in include.xml file using different tags to import libfacebook_ios_sdk.a for iphonesim and iphoneos.
I do not know if it's possible with OpenFL or Stencyl tags but I want to write something like that:
Code: [Select]
<dependency name="ndll/iPhone/iphoneos/libfacebook_ios_sdk.a" if="iphoneos" />
<dependency name="ndll/iPhone/iphonesim/libfacebook_ios_sdk.a" if="iphonesim" />
Obliviously these dependancy are not correct. Someone known if there's a good way to do that?
Hope this post can explain well issue I'm trying to face. Please ask me about eventual not clear part.
Thanks in advance for help and for your time, David.