freshplanet / ANE-Push-Notification

Air Native Extension (iOS and Android) for Push Notification
Apache License 2.0
205 stars 104 forks source link

Problem with binary AirPushNotification.ane in commit 39616700b878a2c652da5c77eed6e21b4465e707 #83

Closed knifhen closed 7 years ago

knifhen commented 8 years ago

When compiling my project using the bin/AirPushNotification.ane I get the following error.

~/Documents/AIR_SDK/lib/aot/bin/ld64/ld64 -r -ObjC -arch arm64 -alias _AirPushExtInitializer _com.freshplanet.AirPushNotification_AirPushExtInitializer -exported_symbol _com.freshplanet.AirPushNotification_AirPushExtInitializer -alias _AirPushExtFinalizer _com.freshplanet.AirPushNotification_AirPushExtFinalizer -exported_symbol _com.freshplanet.AirPushNotification_AirPushExtFinalizer -lcom.freshplanet.AirPushNotification -L/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e -F/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e -o "~/project/bin-debug/AOTBuildOutput1193960213149145967.tmp/com.freshplanet.AirPushNotification.o" duplicate symbol _llvm.cmdline in: /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(AirPushNotification.o) /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(StarterNotificationChecker.o) duplicate symbol _llvm.embedded.module in: /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(AirPushNotification.o) /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(StarterNotificationChecker.o) ld: 2 duplicate symbols for architecture arm64 com.adobe.air.ipa.ProcessError: Unable to link ANE libcom.freshplanet.AirPushNotification at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:273) at com.adobe.air.ipa.AOTCompiler.hideAneSymbols(AOTCompiler.java:740) at com.adobe.air.ipa.AOTCompiler.linkMachO(AOTCompiler.java:625) at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:795) at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:493) at com.adobe.air.ipa.IPAOutputStream.access$100(IPAOutputStream.java:68) at com.adobe.air.ipa.IPAOutputStream$CompileTask.run(IPAOutputStream.java:969) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ~/Documents/AIR_SDK/lib/aot/bin/ld64/ld64 -r -ObjC -arch armv7 -alias _AirFacebookInitializer _com.freshplanet.AirFacebook_AirFacebookInitializer -exported_symbol _com.freshplanet.AirFacebook_AirFacebookInitializer -alias _AirFacebookFinalizer _com.freshplanet.AirFacebook_AirFacebookFinalizer -exported_symbol _com.freshplanet.AirFacebook_AirFacebookFinalizer -lcom.freshplanet.AirFacebook -L/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/6e44e4f4-9710-42c5-8467-5fce34dec861 -F/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/6e44e4f4-9710-42c5-8467-5fce34dec861 "-F/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/6e44e4f4-9710-42c5-8467-5fce34dec861" -framework "FBSDKCoreKit" "-F/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/6e44e4f4-9710-42c5-8467-5fce34dec861" -framework "FBSDKLoginKit" "-F/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/6e44e4f4-9710-42c5-8467-5fce34dec861" -framework "FBSDKShareKit" -o "~/project/bin-debug/AOTBuildOutput5968450166179696512.tmp/com.freshplanet.AirFacebook.o" ~/Documents/AIR_SDK/lib/aot/bin/ld64/ld64 -r -ObjC -arch armv7 -alias _AirPushExtInitializer _com.freshplanet.AirPushNotification_AirPushExtInitializer -exported_symbol _com.freshplanet.AirPushNotification_AirPushExtInitializer -alias _AirPushExtFinalizer _com.freshplanet.AirPushNotification_AirPushExtFinalizer -exported_symbol _com.freshplanet.AirPushNotification_AirPushExtFinalizer -lcom.freshplanet.AirPushNotification -L/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e -F/var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e -o "~/project/bin-debug/AOTBuildOutput5968450166179696512.tmp/com.freshplanet.AirPushNotification.o" duplicate symbol _llvm.cmdline in: /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(AirPushNotification.o) /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(StarterNotificationChecker.o) duplicate symbol _llvm.embedded.module in: /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(AirPushNotification.o) /var/folders/mb/f23s61_n5sl78x0dlrfc1p_00000gn/T/c6ffc5cb-57e2-44fe-ae76-90b26f86194e/libcom.freshplanet.AirPushNotification.a(StarterNotificationChecker.o) ld: 2 duplicate symbols for architecture armv7 com.adobe.air.ipa.ProcessError: Unable to link ANE libcom.freshplanet.AirPushNotification at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:273) at com.adobe.air.ipa.AOTCompiler.hideAneSymbols(AOTCompiler.java:740) at com.adobe.air.ipa.AOTCompiler.linkMachO(AOTCompiler.java:625) at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:795) at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:493) at com.adobe.air.ipa.IPAOutputStream.access$100(IPAOutputStream.java:68) at com.adobe.air.ipa.IPAOutputStream$CompileTask.run(IPAOutputStream.java:969) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Compilation failed while executing : ld64

Going back to the previous commit I don't get any error.

skolesnyk commented 8 years ago

Are you using Air 20 ?