• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR native extension 64-bit on Mac OSX

Engaged ,
Mar 21, 2019 Mar 21, 2019

Copy link to clipboard

Copied

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

TOPICS
Development

Views

686

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Mar 21, 2019 Mar 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 Rele

...

Votes

Translate

Translate
Engaged ,
Mar 21, 2019 Mar 21, 2019

Copy link to clipboard

Copied

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"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 22, 2019 Mar 22, 2019

Copy link to clipboard

Copied

LATEST

It work now, thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines