【问题标题】:AIR: Linker error with 3rd party iOS native extensionAIR:第 3 方 iOS 本机扩展的链接器错误
【发布时间】:2012-08-12 08:51:25
【问题描述】:

我目前正在尝试将 .ane 合并到我的 iOS 应用程序中。 .ane 由第 3 方提供,我没有它的来源。

我已将随附的 .swc 链接到我的项目 (external linkage as recommended by both Adobe and the 3rd party) 并成功构建了 .swf。我的问题始于使用 adt 构建 .ipa 进行部署。下面是我正在使用的模拟 adt 命令。您可以假设所有 的内容都已正确填写,因为我已经详尽地检查了所有内容,并且构建运行了很长时间。不过,我可能会错过一些甜蜜的善良……

adt -package -target ipa-ad-hoc -provisioning-profile <the-file> -storetype <the-store-type> -storepass <the-password> -keystore <the-certificate> ./../myapp.ipa MyApp-app.xml MyApp.swf -extdir <path-to-ane-files>

一切进展顺利,直到我收到以下错误,我们突然停止:

ld: library not found for -lsqlite3

这告诉我的是,第 3 方 .ane 是 either by specifying through a -platformoptions xml file 或其他方式,试图链接到 sqlite3 库,并且在要构建底层 Xcode 项目的 adt 过程中,该库找不到。

我的设置如下:
Mac OSX Lion
Adobe Flash Builder 4.5 w/PHP
Xcode 4.4.1 Flex 4.6.0 (AIR 3.3) SDK

现在,sqlite3 位于 /usr/lib 中,所以我知道它在那里,实际上它可以是任何库。由于这是一个命令行 AIR 实用程序,我无法访问底层 Xcode 项目(据我所知)to just tell it where the library is,所以我现在有点卡住并且没有想法。

我可能还应该注意到,我在使用任何其他(本地或其他)扩展时都没有遇到这个问题,但这很可能是因为它们几乎没有依赖关系。

谢谢!

【问题讨论】:

    标签: ios xcode4 air flash-builder4.5 air-native-extension


    【解决方案1】:

    好的,我认为这最终成为我的设置问题。 By pointing the adt command to the version of the iOS SDK I was using explicitly,问题已解决。这就是我认为发生的事情:

    • 我前几天下载了Flex 4.6.0AIR3.3并安装了。 Adobe 说它带有一个内置的 iOS 版本(但我找不到它),所以我假设它使用 /Developer/Platforms/iPhoneIS.platform 每个 Snow Leopard 和 Xcode 3 中的那些。

      李>
    • 然后我升级到 Lion,这样我就可以升级到 Xcode 4,这样我就可以构建 iOS 5 的东西了。 Xcode 4 现在是从 App Store 安装的,所以我先fully remove Xcode 然后从 App Store 重新安装它。

    • Xcode 4 将 SDKS 放在其应用程序包中,而不是放回 /Developer/Platforms。有可能“从下面拉出地毯” Adob​​e?

    无论如何,它已经解决了,只需要意识到 SDK 已经“消失”了......哦,并意识到 sqlite3.a 不是链接器正在寻找的,而是 libsqlte3.dylib。

    这是修改后的 adt 命令,注意 -platformsdk 开关的存在:

    adt -package -target ipa-ad-hoc -provisioning-profile <the-file> -storetype <the-store-type> -storepass <the-password> -keystore <the-certificate> ./../myapp.ipa MyApp-app.xml -plaformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/<version> MyApp.swf -extdir <path-to-ane-files>
    

    :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-02-09
      • 1970-01-01
      • 1970-01-01
      • 2013-11-26
      • 1970-01-01
      • 2014-04-03
      • 1970-01-01
      相关资源
      最近更新 更多