Skip to main content
This topic has been closed for replies.

5 replies

October 18, 2011

Hi:

Currently release IDE's like FB and Flash Pro are not aware of the new switches added to ADT for Native extensions, hence they cannot be used to package applications using NEs. But you can automate the building process with the help of ant task follow the steps on http://www.riaspace.com/2011/03/packaging-air-application-for-ios-devices-with-adt-command-and-ant-script/ and provide -extdir switch just as described in Wikis of the project.

Participant
October 31, 2011

Hi Saumitra Bhava,

Nice examples of Native Extensions. I am having an issue when trying to use a block in Objective-c Something as simple as

- (void) searchForAlbums

{

    void(^test)(void) = ^{

        NSLog( @"BLOCK CALLED" );           

    };

    test();

}

does not work and FlashBuilder reports the following error.

ld: absolute addressing (perhaps -mdynamic-no-pic) used in -[MobileImagePicker searchForAlbums] from /var/folders/nw/nwjKk-0UFzKXgLSHtcbjxE+++TI/-Tmp-/534267c1-6c13-4a8e-98d6-6c8357d4f355/libuk.co.betadesigns.extension.NativeImagePicker.a(MobileImagePicker.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs

Compilation failed while executing : ld64

Have you tried using blocks in an iOS extension?

Regards

Anthony

October 31, 2011

Hi anthony: You can see the gyroscope extension for ios which uses blocks. Sent from my mobile