Highlighted

Swift iOS ANE Framework

Participant ,
Aug 27, 2015

Copy link to clipboard

Copied

Hey,

Has anybody played with making an iOS ANE using swift?

When using Swift, you can't make a Static Library (.a file). You have to make a framework instead. So in the extension.xml, instead of pointing to a .a file, I'm going to point to the .framework instead.

I'm about to finish up packaging up the ANE to see if this works or not. If anybody have experience in this, share you experience. Thanks.

TOPICS
Development

Views

5.2K

Likes

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

Swift iOS ANE Framework

Participant ,
Aug 27, 2015

Copy link to clipboard

Copied

Hey,

Has anybody played with making an iOS ANE using swift?

When using Swift, you can't make a Static Library (.a file). You have to make a framework instead. So in the extension.xml, instead of pointing to a .a file, I'm going to point to the .framework instead.

I'm about to finish up packaging up the ANE to see if this works or not. If anybody have experience in this, share you experience. Thanks.

TOPICS
Development

Views

5.2K

Likes

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
Aug 27, 2015 0
Advocate ,
Aug 27, 2015

Copy link to clipboard

Copied

it's impossible because AIR developed not using swift

Likes

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
Reply
Loading...
Aug 27, 2015 0
Engaged ,
Aug 27, 2015

Copy link to clipboard

Copied

I haven't made an ANE with swift but I HAVE made an ANE with a custom .framework.

Once you've made your .framework (ours was made with Obj-c but Swift should work as well, assuming both languages output the same format of .framework), you make ANOTHER project, which is where you make a .a file.  In the second project, you reference and use the .framework as necessary, and also put all your ANE interface code.  The .a gets included into the ANE like normal.  It must be a static library.

You also have to add the .framework as a <packagedDependency> in your platform.xml file, and if your .framework includes any resources, copy them into the iPhone-ARM directory when you build the ANE.

Likes

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
Reply
Loading...
Aug 27, 2015 0
Participant ,
Aug 27, 2015

Copy link to clipboard

Copied

‌yeah. I was wondering if I can skip the static library altogether .a file and just use the framework. If not, I guess I would have to build a static library in objective c that calls the swift framework.

I'm hoping it would work  since they're both libraries Of sorts.

Likes

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
Reply
Loading...
Aug 27, 2015 0
Engaged ,
Aug 27, 2015

Copy link to clipboard

Copied

I don't know of any way of creating an ANE using anything other than a static, .a library as the interface between AS3 and Obj-C.  I originally tried to use a dynamic library and that didn't work either.

Of course, just cuz I haven't gotten it to work, doesn't mean it can't be done.........

Likes

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
Reply
Loading...
Aug 27, 2015 0
Participant ,
Aug 27, 2015

Copy link to clipboard

Copied

‌I'm thinking as long as I have the flashruntimeextension api written in the swift framework, it'll work as the bridge to as3. Well, I'll see if it works in a day or 2.

Likes

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
Reply
Loading...
Aug 27, 2015 0
Engaged ,
Aug 27, 2015

Copy link to clipboard

Copied

I'm not sure, because the bridge to AS3 is in pure C, not even Obj-C. Let

me know how it works!

Likes

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
Reply
Loading...
Aug 27, 2015 0
Participant ,
Aug 27, 2015

Copy link to clipboard

Copied

‌yyes, I imported the c API into the swift framework.

Likes

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
Reply
Loading...
Aug 27, 2015 0
Engaged ,
Aug 27, 2015

Copy link to clipboard

Copied

oh cool! Well, I'll be interested to see if it works.

Likes

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
Reply
Loading...
Aug 27, 2015 0
Participant ,
Aug 29, 2015

Copy link to clipboard

Copied

So I put the framework in the <nativeLibrary> in extension.xml, and ADT didn't know what to do with the framework. So I build a nib/empty static Library(.a) that imports the framework. That ANE was successfully built. I don't know if that'll work or not. We'll see. If you have another ideas, please share.

Likes

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
Reply
Loading...
Aug 29, 2015 0
Advocate ,
Aug 29, 2015

Copy link to clipboard

Copied

Main point here is "Will this work or not" because ANE it's just a ZIP and you can put there your photo, for example

Likes

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
Reply
Loading...
Aug 29, 2015 0
Advocate ,
Aug 31, 2015

Copy link to clipboard

Copied

any news on this?

Likes

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
Reply
Loading...
Aug 31, 2015 0
Participant ,
Sep 03, 2015

Copy link to clipboard

Copied

I can't build the ANE. It's not like a zip when you can zip the necessary files and changing the .zip to .ane. Flash Builder knows this isn't an ane file.

Ok, so here's the set up and I keep getting this error

Missing native library implementation 'myFrame.framework' for platform: iPhone-ARM

File structure.

/DatePickerANE.swc

/extension.xml

/platform.xml

/ios/library.swf

      /myFrame.framework

extension.xml

<extension xmlns="http://ns.adobe.com/air/extension/18.0">

    <id>com.minh.truong.datepicker</id>

    <versionNumber>1.0</versionNumber>

    <platforms>

        <platform name="iPhone-ARM">

            <applicationDeployment>

                <nativeLibrary>myFrame.framework</nativeLibrary>

                <initializer>DatePickerExtensionInitializer</initializer>

            </applicationDeployment>

        </platform>

    </platforms>

</extension>

platform.xml

<platform xmlns="http://ns.adobe.com/air/extension/18.0">

    <description>Date Picker ANE</description>

    <copyright>2015</copyright>

    <sdkVersion>9.0</sdkVersion>

    <linkerOptions>

        <option>-ios_version_min 9.0</option>

        <option>-rpath @executable_path/Frameworks</option>

    </linkerOptions>

    <packagedDependencies>

        <packagedDependency>ios/myFrame.framework</packagedDependency>

    </packagedDependencies>

</platform>


ADT package

adt -package -target ane datePickerANE.ane extension.xml -swc DatePickerANE.swc -platform iPhone-ARM -platformoptions platform.xml -C ios .


I've tried it with the platform.xml and without but same result.

Likes

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
Reply
Loading...
Sep 03, 2015 0
Engaged ,
Sep 03, 2015

Copy link to clipboard

Copied

I was able to make a custom ANE with an obj-c framework, not swift, but it should be similar..... hopefully

Posting this in case it helps.

Here's a build script that I run to build the ANE after building my .a and SWCs.  I have to copy any assets from the .framework manually, and the directory HAS to be named iPhone-ARM.

#clear out iphone-arm folder

rm -fR iPhone-ARM/*

# copy swc to build folder

cp ../as3/MyANEAS3Lib/bin/MyANEAS3Lib.swc .

# extract main library.swf, copy to ios folder

cp MyANEAS3Lib.swc tmp.zip

unzip tmp.zip

rm catalog.xml

rm tmp.zip

mv library.swf iPhone-ARM

# copy .a to ios folder

cp ../ios/Build/Products/Release-iphoneos/libMyANE.a iPhone-ARM

# copy framework to build folder

rm -fR MyObjCFramework.framework

cp -R ../ios/Build/Products/Release-iphoneos/MyObjCFramework.framework .

# copy ios framework assets to ios folder

# add or remove lines here as needed - we have a bunch of asset files, a storyboard, etc

cp ../ios/Build/Products/Release-iphoneos/MyObjCFramework.framework/*.png iPhone-ARM/

cp ../ios/Build/Products/Release-iphoneos/MyObjCFramework.framework/*.wav iPhone-ARM/

cp ../ios/Build/Products/Release-iphoneos/MyObjCFramework.framework/*.ttf iPhone-ARM/

cp ../ios/Build/Products/Release-iphoneos/MyObjCFramework.framework/*.xml iPhone-ARM/

cp -R ../ios/Build/Products/Release-iphoneos/MyObjCFramework.framework/MyStoryboard.storyboardc iPhone-ARM/

# extract default library.swf, copy to default folder

cp ../default/MyANEDefaultLib/bin/MyANEDefaultLib.swc ./tmp.zip

unzip tmp.zip

rm catalog.xml

rm tmp.zip

mv library.swf default

# compile ANE

adt -package -target ane MyANE.ane extension.xml -swc MyANEAS3Lib.swc \

  -platform iPhone-ARM -platformoptions platform-ios.xml MyObjCFramework.framework -C iPhone-ARM/ . \

  -platform default -C default/ .

And here's the platform-ios.xml file. it includes my .framework and a couple of  frameworks I need and a .dylib I use.

<platform xmlns="http://ns.adobe.com/air/extension/16.0">

    <description>My ANE with a custom framework</description>

    <copyright>2015</copyright>

    <sdkVersion>8.1</sdkVersion>

    <linkerOptions>

        <option>-ios_version_min 6.1</option>

        <option>-framework CoreData</option>

        <option>-framework StoreKit</option>

        <option>-weak_library /usr/lib/libsqlite3.dylib</option>

    </linkerOptions>

    <packagedDependencies>

        <packagedDependency>MyOBJCFramework.framework</packagedDependency>

    </packagedDependencies>

</platform>

And here's the extension.xml:

<extension xmlns="http://ns.adobe.com/air/extension/16.0">

  <id>com.luckykatworld.LKWAuthentication</id>

  <versionNumber>0.0.2</versionNumber>

  <platforms>

  <platform name="iPhone-ARM">

  <applicationDeployment>

  <nativeLibrary>libMyANE.a</nativeLibrary>

  <initializer>MyInitializer</initializer>

  <finalizer>MyFinalizer</finalizer>

  </applicationDeployment>

  </platform>

  <platform name="default">

  <applicationDeployment/>

  </platform>

  </platforms>

</extension>

Hope that helps!

Likes

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
Reply
Loading...
Sep 03, 2015 0
Participant ,
Sep 08, 2015

Copy link to clipboard

Copied

I got the ANE to build but when I go to run the APP, I keep getting packaging error from Flash Builder.

ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/myFrame.framework/myFrame) for architecture arm64 ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (@rpath/myFrame.framework/myFrame) for architecture armv7 Compilation failed while executing : ld64

I've built everything for iOS 9 but I keep getting this. What is this?

Likes

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
Reply
Loading...
Sep 08, 2015 0
Participant ,
Sep 10, 2015

Copy link to clipboard

Copied

I just realized AIR 18 doesn't compile for iOS 9. I was going to update to AIR 19 beta but saw the bug that it doesn't compile iOS 9. Not sure if it's fixed or not. So I did a custom launch with the -platformsdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk

That error is gone but got a new one

ld: library not found for -lSystem.B

ld: library not found for -lgcc_s.1

Compilation failed while executing : ld64

Oh, well, this project will be on the sideline until AIR 19 comes out.

Likes

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
Reply
Loading...
Sep 10, 2015 0
Participant ,
Feb 05, 2017

Copy link to clipboard

Copied

Looks like with the new AIR 25 beta, AIR is using iOS 10 SDK and will support Swift in an ANE.

Likes

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
Reply
Loading...
Feb 05, 2017 0
Advocate ,
Feb 05, 2017

Copy link to clipboard

Copied

Correct me if I was wrong, but Swift libs can be used in Swift-only project. You can't use Swift in Objective-C/C++ projects? But you can use Obj-C in Swift.

AIR was done not in Swift.

Likes

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
Reply
Loading...
Feb 05, 2017 0
Engaged ,
Feb 05, 2017

Copy link to clipboard

Copied

Correct me if I was wrong, but Swift libs can be used in Swift-only project. You can't use Swift in Objective-C/C++ projects?

You can call Swift from Objective C projects and call Objective C from C++ projects. If you are feeling crazy you can even combine all 3.

I've done it on OSX projects.

I did some more playing around today with AIR25 beta. I am able to call Swift code from an ANE.

You can build the Swift code into a dynamic framework and reference that from the static lib that is your main ANE.

However, and to my disappointment, I couldn't reference any "FRE" code in my Swift code 

So passing FREObjects, calling FREDispatchStatusEventAsync etc.

ANEs on iOS are different to OSX in that I believe all the ANE FlashRuntime code gets cross compiled into the main app. I could find no way of referencing the FRE code from the Dynamic Framework.

So it might be somewhat useful, but a large chunk of your ANE code would be Objective C.

Likes

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
Reply
Loading...
Feb 05, 2017 0
Engaged ,
Feb 19, 2017

Copy link to clipboard

Copied

I have been able to build an iOS ANE which mixes ObjectiveC and Swift in the Simulator.

https://github.com/tuarua/SwiftIOSANE

When releasing, the package is created and successfully deployed to device.

However it crashes when run with either these errors:

code signing blocked mmap()

required code signature missing for '/private/var/containers/Bundle/Application/86FFE565-CBC9-4B19-A41F-169C8E98630C/Main_Swift.app/SwiftIOSANE_FW.framework/SwiftIOSANE_FW'

This is due I believe to the Swift Framework needing to be signed as part of packaging process.

I am not able to find a suitable way to do this without resigning the whole pacakge. If you are familiar with such problems please give me a shout.

Likes

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
Reply
Loading...
Feb 19, 2017 1
Engaged ,
Feb 20, 2017

Copy link to clipboard

Copied

professorM

周戈

chris.campbell

I was able to get the app running and working on my iPad.
It does need some bash scripts to do it but this to me is acceptable.


Process is
1) Sign the Dynamic Framework
2) Package AIR App
3) Resign AIR App
4) Deploy to Device via iTunes/Xcode/Terminal and optionally debug with fdb

I will push the scripts I have to github later.

It would be useful if Adobe could add something to adt which could incorporate Step 1 and 3

Likes

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
Reply
Loading...
Feb 20, 2017 2
Participant ,
Feb 20, 2017

Copy link to clipboard

Copied

Thank you el111 

Finally, someone like you came along and changes everything!

I did some more playing around today with AIR25 beta. I am able to call Swift code from an ANE.

You can build the Swift code into a dynamic framework and reference that from the static lib that is your main ANE.

However, and to my disappointment, I couldn't reference any "FRE" code in my Swift code 

So passing FREObjects, calling FREDispatchStatusEventAsync etc.

Earlier you mentioned you can't reference any "FRE" code in your Swift code, have you solved this problem now? Or does it have to get Adobe AIR Team to solve it?

Dear Adobe, please add Swift support to the ANE, it will be a HUGE STEP UP!

Thanks again to el111​, you are awesome!

Likes

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
Reply
Loading...
Feb 20, 2017 0
Engaged ,
Feb 20, 2017

Copy link to clipboard

Copied

Earlier you mentioned you can't reference any "FRE" code in your Swift code, have you solved this problem now?

No. This would need Adobe to allow that, and it may mean a big change on their part or even Apple's part.

However, what the sample ANE hopefully exhibits is that it may not be a big deal.

  • The entry ObjectiveC file takes your FRE args and converts to native Objects and these are passed in to your Swift methods.
  • The provided aneHelper class provided can be used to automatically convert Objects received from Swift into FREObjects.
  • You can dispatchEvents back to AIR straight from Swift.

Think of the ObjectiveC file as an API layer to your main app logic in Swift.

So Swift is supported in ANEs just not how you imagined.

Likes

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
Reply
Loading...
Feb 20, 2017 0
Engaged ,
Feb 25, 2017

Copy link to clipboard

Copied

Updated GitHub with a tool written in AIR to package app, deploy and debug on device

Likes

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
Reply
Loading...
Feb 25, 2017 0
Engaged ,
Mar 02, 2017

Copy link to clipboard

Copied

Earlier you mentioned you can't reference any "FRE" code in your Swift code, have you solved this problem now?

No. This would need Adobe to allow that, and it may mean a big change on their part or even Apple's part.

I've actually figured out how to do this, to call FRE functions from within Swift

I'm working through it and will update the GitHub repo when it's ready

Likes

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
Reply
Loading...
Mar 02, 2017 0
Participant ,
Mar 02, 2017

Copy link to clipboard

Copied

That's outstanding to hear!

I have a question, if I write 8 custom functions in my Swift Class, each function takes parameters input from AS3 side, now in order to do this, do I have to write 8 corresponding functions in the OC bridge (so that AS3 calls OC, OC calls Swift), or do I just need to write only one function in the OC bridge, that function takes 3 parameters: swiftClassName (which is a String), swiftFunctionName (which is a String) and swiftFunctionParameters (which is an Array), so that AS3 calls OC, then the OC function calls Swift and deliver the parameters?

Likes

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
Reply
Loading...
Mar 02, 2017 0
Engaged ,
Mar 05, 2017

Copy link to clipboard

Copied

Updated repo with latest code.

Now allows calls to FRE functions from Swift

The project contains a translation of FlashRuntimeExtensions to Swift. It is comprised of 2 parts.

  1. A static library which exposes methods to AIR and a thin ObjectiveC API layer to the Swift code.
  2. A dynamic Swift Framework which contains the main logic of the ANE.

To allow FRE functions to be called from within Swift, a protocol acting as a bridge back to Objective C was used.

Example - Converting a FREObject into a String

var swiftString: String = ""

var len: UInt32 = 0

let status: FREResult = FREGetObjectAsUTF8(object: object, length: &len, value: &swiftString)

var airString: FREObject? = nil

let status: FREResult = FRENewObjectFromUTF8(length: UInt32(string.utf8.count), value: ret, object: &freObject)

Example - Converting a FREObject into a String the easy way, using ANEHelper.swift

let swiftString: String = aneHelper.getString(object: object)

let airString: FREObject? = aneHelper.getFREObject(string: swiftString)

trace(value: swiftString)

GitHub - tuarua/SwiftIOSANE: Example Air Native Extension written in Swift 3 for iOS 10

Likes

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
Reply
Loading...
Mar 05, 2017 1
Engaged ,
Mar 05, 2017

Copy link to clipboard

Copied

You don't have to write 8 matching functions in ObjC. You could use a single ObjC function which acts as a 'switch'. You could then call the Swift methods using SelectorString.

However, it's not considered good practice. For eg, Each Swift method would have to take and return parameters. 

Likes

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
Reply
Loading...
Mar 05, 2017 0
Participant ,
Mar 07, 2017

Copy link to clipboard

Copied

Awesome!

One more question, when people using your solution (which is now availbe on your GitHub), is it possible for them to only write the Swift codes, and don't have to write the OC codes at all? If so, that will be outstanding!

Likes

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
Reply
Loading...
Mar 07, 2017 0
Engaged ,
Mar 07, 2017

Copy link to clipboard

Copied

beggars can't be choosers

DEFINITION

proverb

people with no other options must be content with what is offered.

Likes

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
Reply
Loading...
Mar 07, 2017 0
Engaged ,
Jun 01, 2017

Copy link to clipboard

Copied

Thanks for documenting all your work and providing the project setups on github.

Following your techniques, I was also able to integrate a third-party Swift framework into an ANE project and get it to work on iOS, tvOS and macOS.

Quite a bit of fidgeting, and as you mention with your tools, requires resigning .ipa before using on iOS and tvOS devices.

Given that more and more third party frameworks are switching to Swift instead of Objective-C, it is becoming limiting to assume we are going to be able to build all our ANEs with static libs.

I second the idea that Adobe should devote some resources to making Swift framework integration into ANE development the new norm for iOS/tvOS/macOS platforms.

Likes

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
Reply
Loading...
Jun 01, 2017 0
Engaged ,
Jun 01, 2017

Copy link to clipboard

Copied

Hi jadams602,

Thanks for the thanks!

I'm really glad to hear someone is using the Swift port of FRE for building real ANEs and it is not sitting as a POC.

Also the fact that it works for tvOS is welcome news. I often wondered.

The code has changed a fair bit from when I first started, as I learned from doing a C# wrapper also.

I think I am done with any major structural changes.

The next thing I am working on is adding helpers for the concept of a "Native Stage". One major drawback of adding a native control, say a webview, is that you then lose the ability place flash objects above the native element. Wouldn't it be nice to be able to add graphics or buttons directly from the actionscript side!!

I can't officially say that Adobe are working on Swift integration for ANEs but am eager to see what it may bring. It may turn out all my work becomes obsolete. haha. Shall see.

Whatever comes, yes the resigning integration is important, given some devs are reluctant to have to worry about bash scripts and such.

Likes

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
Reply
Loading...
Jun 01, 2017 0
Participant ,
Jun 01, 2017

Copy link to clipboard

Copied

I think the best solution is to have the IDE do the tedious stuff like resigning for us. FlashBuilder CC? lol

Likes

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
Reply
Loading...
Jun 01, 2017 0
Engaged ,
Jun 02, 2017

Copy link to clipboard

Copied

Actually, having re-read your post you may be saying that you integrated a Swift framework into an existing Obj C based ANE rather than using FreSwift?

Either way good you were able to follow the same techniques.

Likes

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
Reply
Loading...
Jun 02, 2017 0
Engaged ,
Aug 04, 2017

Copy link to clipboard

Copied

jadams602​ and I have been testing AIR 27 Beta with regards to the signing of AIR apps which include Swift Dynamic frameworks.

There is now no need for workaround tools or resigning scripts to run on an iOS device.

An issue with using Simulator may need to be resolved, but AIR 26 can be used for this.

Adobe notes:

1. You need to keep external Frameworks inside <Root_IPA_PATH>/Frameworks folder to be signed by ADT. Otherwise external framework files will be ingnored for signing.

2. Frameworks folder contains External Framework library as well as Swift dylib dependencies if any.

3. Reference Packaging command for Sample IPA with external framework:

- Using command line:

bin/adt -package -target ipa-app-store -provisioning-profile <Path_To_ProvisiongProfile> -storetype pkcs12 -keystore <Path_To_Certificate> -storepass <Password> new.ipa SwiftSampleiOS-app.xml SwiftSampleiOS.swf Frameworks -extdir .

Likes

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
Reply
Loading...
Aug 04, 2017 0