1、ane生成环境搭建:
plateformoptions.xml 与引入第三方包所有需要的
a、在mac上安装fb,配置好air项目,在本机扩展中配置Apple iOS sdk:
/Applications/Xcode2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/
b、如何把framework的代码编译进.a?
因为ane里只能含有.a, 而framework的代码我不知道如何能link进.a里,只需要在打包ipa的时候,设置一下IOS的SDK路径, SDK目录里放入平台的framework即可。*************/System/Library/Frameworks/下。
<platform xmlns="http://ns.adobe.com/air/extension/3.6">
<description > An optional description</description>
<copyright>2014 (optional)</copyright>
<sdkVersion>6.0</sdkVersion>
<linkerOptions>
<option>-w</option>
<option>-ios_version_min 4.3</option>
<option>-framework CoreGraphics</option>
<option>-framework UIKit</option>
<option>-framework QuartzCore</option>
<option>-framework SystemConfiguration</option>
<option>-framework Security</option>
<option>-framework MessageUI</option>
<option>-framework AdSupport</option>
<option>-framework Foundation</option>
<option>-framework TBPlatform</option>
<option>-lz</option>
</linkerOptions>
</platform>
extendsion.xml
<extension xmlns="http://ns.adobe.com/air/extension/3.6">
<id>com.tbt.ane</id>
<versionNumber>1</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
<nativeLibrary>libBFtbt.a</nativeLibrary>
<initializer>tbtAneExtInitializer</initializer>
<finalizer>tbtAneExtFinalizer</finalizer>
</applicationDeployment>
</platform>
</platforms>
</extension>
ane.sh 生成ane 的脚本
参考文档 http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7fff.html#WSdb11516da818ea8d49ce0fe713341ed67cf-7fff
http://www.myexception.cn/operating-system/1451490.html
http://www.swfdiy.com/?p=1328
2、代码研发