Last 3 months i was struggle with my own job and never get success till lost my passion to deal with it. Adobe AIR had powerful to tuning your Flash (Animate CC) running on iOS and Android, 80% of developers as my ages can do that. It's getting old by age of technologies but it's always modern in my mind. I love it.
After boring full-time job, i've back to try my own (hobbies) job again, it's getting with other issue like this platformoptions.xml error platform contains an invalid value.
I've search google but just founded a fews of information on the internet. An errors seem like my stuff but actually it's not. The thing from zero point of professional each technology stack. I've tracking them from this.
- Air Native Extension (ANE)
- Air SDK
- Xcode
1. Air Native Extension (ANE) by below setting of my platformoptions.xml like below.
<platform xmlns="http://ns.adobe.com/air/extension/31.0">
<description>TestANE</description>
<copyright>Porawee Raksasin</copyright>
<sdkVersion>12.2</sdkVersion>
<linkerOptions>
<option>-ios_version_min 8.0</option>
</linkerOptions>
</platform>
But i've got below error.
platformoptions.xml(4): error 105: platform contains an invalid value
platformoptions.xml(6): error 105: platform.linkerOptions contains an invalid value
2. Air SDK by checking format about sdkVersion and option error. You can check from this path /yourPath/flex_sdk_4.6/templates/extensions/ios/platform-descriptor-template.xml.
<?xml version="1.0" encoding="utf-8" ?>
<platform xmlns="http://ns.adobe.com/air/extension/31.0">
<!-- Adobe AIR Platform Descriptor File Template.
Specifies iOS specific options for AIR extensions.
xmlns - The Adobe AIR extension namespace: http://ns.adobe.com/air/extension/3.5
The last segment of the namespace specifies the version
of the AIR runtime required for this application to run.
-->
<!-- Description. May have multiple values for each language. Optional. -->
<!-- <description> </description> -->
<!-- Copyright information. Optional. -->
<!-- <copyright> </copyright> -->
<!-- The version of iOS SDK that the app should be linked with. Optional. -->
<sdkVersion>4.3</sdkVersion>
<!-- Dependencies that are packaged in the ANE. Optional. -->
<packagedDependencies>
<!-- A dependency can be a static library,a static framework or an object file. -->
<!-- <packagedDependency></packagedDependency> -->
</packagedDependencies>
<!-- Options that should be passed to the linker. Optional. -->
<linkerOptions>
<!-- <option>-ios_version_min 4.3</option> -->
<!-- <option>-framework Accelerate</option> -->
<!-- <option>-liconv</option> -->
</linkerOptions>
</platform>
After test with version 4.3, Hooray!! i've got a new error.
Error: Apple App Store allows only universal applications. "libTestANE.a" is not a universal binary. Please change build settings in Xcode project to "Standard Architecture" to create universal library/framework.
3. Xcode by clearly above suggestion from template then i've back to Xcode and open up goto Project > Build Settings.
Just change Targeted Device Family from "iPhone" to "Universal", build project and use libTestANE.a to build. The missing configuration take me get lost many hours. I hope you enjoy and save your time to solved this kind of thing.
;) See ya next thread.
No comments:
Post a Comment