Ld: library not found for -lgcc_s.1 when building an AIR iOS package with native extension

I'm trying to create a custom AIR extension for iOS, but when I try to create a package to deploy to my device, I get the following error:

ld: library not found for -lgcc_s.1
Compilation failed while executing : ld64

      

Works when I try to build a simulator app. I have tried many combinations of adding libgcc_s.1 to my platform.xml file, creating only a package for iOS, creating a bold binary for both simulator and phone, etc.

I'm not sure why it needs the libgcc_s.1 package as I am not referencing it in my extension. I tried to add it manually to the "Link Binary With Libraries" list in xcode and at this point it will not be created, telling me that libgcc_s.1.dylib does not exist on my system.

Do other people have this library on their system? Does anyone know why it is being added if I don't ask for it?

+3


source to share


1 answer


I finally solved this after days of searching and testing. Remove the -platformsdk parameter when packaging the device.



+4


source







All Articles