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 ?
Thanks
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
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"
Copy link to clipboard
Copied
It work now, thanks.