distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Scanner packaging error #205

Closed JorgeVelez closed 10 years ago

JorgeVelez commented 10 years ago

I get this error while trying to package the Scanner native extension for ios:

ld: duplicate symbol _SCANNEREVENT_SCAN_START in C:\Users\JORGEV~1\AppData\Local\Temp\64282827-c262-43a4-bed2-c99ce24ae64c\libcom.distriqt.Scanner.a(ScannerEvent.o) and C:\Users\JORGEV~1\AppData\Local\Temp\64282827-c262-43a4-bed2-c99ce24ae64c\libcom.distriqt.Scanner.a(ZBarOverlayView.o) for architecture armv7 Compilation failed while executing : ld64

I looked in forums and I saw that i could be fixed with hide ane library symbols, but the i get this:

Compilation failed while executing : ld64

What needs to be done?

marchbold commented 10 years ago

Are you compiling using a version of the iOS SDK?

JorgeVelez commented 10 years ago

Im not using the ios SDK. I did see the option in the native extensions package settings configuration but i didnt see anything in the instructiuons.

Is it neccesary?

marchbold commented 10 years ago

Yes we advise all our extensions be compiled against an iOS SDK. This keeps your code running against the latest SDK as well to avoid any review issues, but also includes libraries that aren't included in the standard AIR packager which many of our extensions use.

Can you try including this and see if it solves the issue?

You can find a recent package of the SDK here:

http://airnativeextensions.com/resources/ios/iPhoneOS7.1.sdk.zip

JorgeVelez commented 10 years ago

Will try. Thank you for the fast response.

JorgeVelez commented 10 years ago

I downloaded the sdk and linked it to flashbuilder. Now i get this error:

Error occurred while packaging the application:

[Fatal Error] :1:1: Content is not allowed in prolog. java.io.IOException: PLIST generation failed due to SAX error:org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. at com.adobe.air.Plist.newFromString(Plist.java:351) at com.adobe.air.Plist.newFromFile(Plist.java:325) at com.adobe.air.ipa.IPAOutputStream.setSDKVersion(IPAOutputStream.java:1070) at com.adobe.air.ipa.IPAOutputStream.setPlatformSDKLocation(IPAOutputStream.java:971) at com.adobe.air.ipa.IPAPackager.setDeviceSDKDirectory(IPAPackager.java:187) at com.adobe.air.ADT.parseFileAndPathArguments(ADT.java:1423) at com.adobe.air.ADT.parseDescriptorAndFileset(ADT.java:1474) at com.adobe.air.ADT.parseInput(ADT.java:929) at com.adobe.air.ADT.parsePackage(ADT.java:672) at com.adobe.air.ADT.parseArgsAndGo(ADT.java:570) at com.adobe.air.ADT.run(ADT.java:419) at com.adobe.air.ADT.main(ADT.java:469)

JorgeVelez commented 10 years ago

I cleaned my app.xml, by the way.

marchbold commented 10 years ago

Not sure about that error. Looks like a Java/adt error. Which AIR SDK are you using?

JorgeVelez commented 10 years ago

flash builder 4.7, air SDK 3.4

marchbold commented 10 years ago

Ah that's a very old SDK you should try to update. We recommend at least 4.0, but the latest is 15.

marchbold commented 10 years ago

The latest can be retrieved from here:

http://www.adobe.com/devnet/air/air-sdk-download.html

JorgeVelez commented 10 years ago

Will do it, thanks.

JorgeVelez commented 10 years ago

that did it. air sdk 13 and ios sdk 7.1

thank you very much.

Saludos from Mexico.