Skip to main content
Inspiring
Mar 21, 2019 4:30 PM UTC
Answered

AIR native extension 64-bit on Mac OSX

Hello,

I created a ane for macOS X, it work.

I Use weak framework linking and the flat namespace option.

if i add a framework "me.framework" in the Xcode project, Xcode Build Succeeded but the ane doesn't work ?

xcode.jpg

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
el111Correct answer
Legend
Mar 21, 2019 8:25 PM UTC

It's a bit vague to say "doesn't work"

However, your me.framework needs to be prepared before packaging with adt. It needs to have any symlinks removed.

eg

cp -R -L "$pathtome/../../native_library/$PROJECT_NAME/Build/Products/Release/me.framework" "$pathtome/platforms/mac/release"

mv "$pathtome/platforms/mac/release/me.framework/Versions/A/Frameworks" "$pathtome/platforms/mac/release/$me.framework"

rm -r "$pathtome/platforms/mac/release/me.framework/Versions"

#Run the build command.

echo "Building Release."

"$AIR_SDK"/bin/adt -package \

-target ane "$pathtome/FreSwift.ane" "$pathtome/extension.xml" \

-swc "$pathtome/FreSwift.swc" \

-platform MacOS-x86-64 -C "$pathtome/platforms/mac/release" "me.framework" "library.swf" \

-platform default -C "$pathtome/platforms/default" "library.swf"

2 replies

el111Correct answer
Legend
Mar 21, 2019 8:25 PM UTC

It's a bit vague to say "doesn't work"

However, your me.framework needs to be prepared before packaging with adt. It needs to have any symlinks removed.

eg

cp -R -L "$pathtome/../../native_library/$PROJECT_NAME/Build/Products/Release/me.framework" "$pathtome/platforms/mac/release"

mv "$pathtome/platforms/mac/release/me.framework/Versions/A/Frameworks" "$pathtome/platforms/mac/release/$me.framework"

rm -r "$pathtome/platforms/mac/release/me.framework/Versions"

#Run the build command.

echo "Building Release."

"$AIR_SDK"/bin/adt -package \

-target ane "$pathtome/FreSwift.ane" "$pathtome/extension.xml" \

-swc "$pathtome/FreSwift.swc" \

-platform MacOS-x86-64 -C "$pathtome/platforms/mac/release" "me.framework" "library.swf" \

-platform default -C "$pathtome/platforms/default" "library.swf"

Translate
pol2095Author
Inspiring
Mar 22, 2019 7:50 AM UTC

It work now, thanks.

Translate