Skip to main content
Inspiring
March 21, 2019
Answered

AIR native extension 64-bit on Mac OSX

  • March 21, 2019
  • 1 reply
  • 850 views

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 has been closed for replies.
Correct answer el111

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"

1 reply

el111Correct answer
Legend
March 21, 2019

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"

pol2095Author
Inspiring
March 22, 2019

It work now, thanks.