Skip to main content
August 2, 2012
質問

Error while packaging

  • August 2, 2012
  • 返信数 2.
  • 798 ビュー

Hi,

This is related to the thread:http://forums.adobe.com/message/4569652#4569652

Sorry for all the support I'm asking, I think I'm almost there!

I contacted Burstly support, and I was able to solve most of my problems. I updated my config.xml file with the framework and librairy they told me to add, which caused most of the problems to go away.

I checked with flurry and from their latest SDK (4.0.1) it seems we now only need to import "Flurry.h", which should contains both the Analytics and AppCircle required by Burstly.

I also added the -all_load flag you told me to add. I'm pretty confident I have all the framework and lib linked correctly.

When I'm trying to package, I get this error though:

ld: duplicate symbol __ZN7avmplus14ErrorConstants23playerErrorMappingTableE in

C:\\Program Files (x86)\\FlashDevelop\\Tools\\flexsdk\\lib\\aot/lib/libRuntimeInterpreter.arm-air.a(PlayerAvmErrors.o) and

C:\\Program Files (x86)\\FlashDevelop\\Tools\\flexsdk\\lib\\aot/lib/libRuntimeInterpreter.arm-air.a(PlayerAvmCore.o)

for architecture armv7

Compilation failed while executing : ld64

APK setup creation FAILED.

While searching for the error in google, I got to the page

https://code.google.com/p/redshell/

here you can see all the class https://code.google.com/p/redshell/source/browse/core/?name=d33ac05c5d&r=d33ac05c5d934f9006b6507a4d21cd93a66f53ac

And this is as far as I could get. I have frankly no idea what is the PlayerAvmCore, nor why and where it is used. Does it ring any bell to you?

Thank you for your understanding

このトピックへの返信は締め切られました。

返信数 2

August 6, 2012

That is a weird error you are getting.

Can you please share the packaging command you are using?

August 6, 2012

I am using Air 3.3 by the way, since I understood it is the only version that support the "-platformSDK" on windows

call adt -package -target %TYPE%%TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR% -extdir lib/external/ -platformsdk ../Libraries/iPhoneOS5.0.sdk/

Also, the error arise since I try to package an ANE with my application. The ANE require a config.xml file:

<platform xmlns="http://ns.adobe.com/air/extension/3.1">

    <sdkVersion>4.2</sdkVersion>

    <linkerOptions>

        <!-- to use the AssetsLibrary framework -->

        <option>-ios_version_min 4.3</option>

        <option>-all_load</option>

        <option>-ObjC</option>

       

        <option>-weak_framework iAd</option>

        <option>-weak_framework UIKit</option>

        <option>-weak_framework MediaPlayer</option>

        <option>-weak_framework EventKit</option>

        <option>-weak_framework CoreMotion</option>

        <option>-weak_framework CoreTelephony</option>

        <option>-weak_framework MessageUI</option>

       

        <option>-weak-lSystem.B</option>

       

        <!--<option>-framework AssetsLibrary</option>-->

        <option>-framework AddressBook</option>

        <option>-framework AddressBookUI</option>

        <option>-framework AudioToolbox</option>

        <option>-framework AVFoundation</option>

        <option>-framework CFNetwork</option>

        <option>-framework CoreGraphics</option>

        <option>-framework CoreLocation</option>

        <option>-framework CoreMotion</option>

        <option>-framework CoreTelephony</option>

        <option>-framework EventKit</option>

        <option>-framework EventKitUI</option>

        <option>-framework Foundation</option>

        <option>-framework iAd</option>

        <option>-framework MapKit</option>

        <option>-framework MediaPlayer</option>

        <option>-framework MessageUI</option>

        <option>-framework MobileCoreServices</option>

        <option>-framework OpenAL</option>

        <option>-framework OpenGLES</option>

        <option>-framework QuartzCore</option>

        <option>-framework Security</option>

        <option>-framework StoreKit</option>

        <option>-framework SystemConfiguration</option>

        <option>-framework UIKit</option>

       

        <option>-lsqlite3</option>

        <option>-lxml2</option>

        <option>-lz</option>

       

    </linkerOptions>

</platform>

I first got this error when I added this line,

<option>-all_load</option>

but omitting it cause undefined symbol errors when packaging:

Undefined symbols for architecture armv7:

  "_OBJC_CLASS_$_FlurryAnalytics", referenced from:

      objc-class-ref in libcom.bhvr.burstlyads.a(Burstly_flurry_Adaptor.o)

"_OBJC_CLASS_$_FlurryAppCircle", referenced from:

      objc-class-ref in libcom.bhvr.burstlyads.a(Burstly_flurry_Adaptor.o)

and

_MedialetsShouldLogDebug", referenced from:

-[MedialetsAdServer sendAppPixelWithURL:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)

      -[MedialetsAdServer adFitsSlot:adID:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)

      -[MedialetsAdServer nextAdFromList:forTargetKey:keywords:andBlockKeywords:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)

      -[MedialetsAdServer isAdValidForSlot:forTargetKey:keywords:andBlockKeywords:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)

      -[MedialetsAdServer nextAdForAdView:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)

      -[MedialetsAdServer startCacheLoad] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)

      -[MedialetsAdServer processReceivedData:] in libcom.bhvr.burstlyads.a(MedialetsAdServer.o)

In case you're wondering, I made a copy + zip of the iOS SDK from a Mac in order to be able to compile on windows.

Thank you for the help