freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

Unable to package app #257

Open subdan opened 6 years ago

subdan commented 6 years ago

Hello. I can't package my app with your ANE. I get this errors:

iOS:

ld: framework not found IOSurface for architecture armv7
ld: framework not found IOSurface for architecture arm64
Compilation failed while executing : ld64

Android:

aapt tool failed:C:\Users\subd\AppData\Local\Temp\8487d73e-d75e-4732-ac98-be54cfceb541\AirFacebook-res\values\values.xml:131: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
C:\Users\subd\AppData\Local\Temp\8487d73e-d75e-4732-ac98-be54cfceb541\AirFacebook-res\values\values.xml:136: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.

How to fix it?

wussow-everi commented 6 years ago

I solved this problem.

For IOS: You need to go into your Xcode installation and locate the IOSSurface.framework and FileProvider.framework. They are located here: <Xcode.app>Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/<iOS_SDK>/System/Library/Frameworks

You need to copy the framework folders into AIRSDK\lib\aot\stub

For Android: Look at my question and answer here

subdan commented 6 years ago

Thanks, @wussow-everi, but I found another Facebook ANE.

anylxl commented 6 years ago

I used ane in the sample project But it failed

anylxl commented 6 years ago

@subdan I used ane in the sample project But it failed

CaptainHug commented 6 years ago

I've made the changes needed in a fork here and included an updated bin: https://github.com/CaptainHug/ANE-Facebook

You will need to replace some things in the AIRSDK folder too, as it has been built with an older version of the linker. You can find what you need here: https://github.com/CaptainHug/ANE-Facebook/blob/master/ios/AIRSDK_overlay.zip

mtilhan commented 6 years ago

@CaptainHug i had compiling error too and your solution works for me. Thanks a lot.