昨天我为我的appcelerator钛应用程序安装了facebook模块,它在模拟器和设备上运行良好。 当我今天早上启动模拟器时,我收到此消息:无法找到模块:facebook for architecture:x86_64 你知道这个bug了吗?在我的tiapp xml上我有:
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<id>com.fbtest.fr</id>
<name>fbtest</name>
<version>1.0</version>
<publisher>esy</publisher>
<url>http://www.fbtest.fr</url>
<description>undefined</description>
<copyright>2016 by xxx</copyright>
<icon>appicon.png</icon>
<fullscreen>false</fullscreen>
<navbar-hidden>false</navbar-hidden>
<analytics>true</analytics>
<guid>a7e1628d-e202-47a5-9ccc-c6f868dc3862</guid>
<property name="ti.ui.defaultunit" type="string">dp</property>
<property name="ti.facebook.appid">222219821644449</property>
<ios>
<enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
<plist>
<dict>
<key>UISupportedInterfaceOrientations~iphone</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIRequiresPersistentWiFi</key>
<false/>
<key>UIPrerenderedIcon</key>
<false/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<!-- Application ID same as the id value in the tiapp.xml file -->
<string>222219821644449</string>
<key>CFBundleURLSchemes</key>
<array>
<!-- Prefix the Facebook App ID with 'fb' -->
<string>fb222219821644449</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<!-- Facebook App ID -->
<string>222219821644449</string>
<key>FacebookDisplayName</key>
<!-- Facebook App Name from developer.facebook.com -->
<string>myappmobile</string>
<key>LSApplicationQueriesSchemes</key>
<!-- If dialog -->
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>facebook.com</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>akamaihd.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <false/>
</dict>
</dict>
</dict>
</dict>
</plist>
</ios>
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<mobileweb>
<precache/>
<splash>
<enabled>true</enabled>
<inline-css-images>true</inline-css-images>
</splash>
<theme>default</theme>
</mobileweb>
<modules>
<module platform="iphone">facebook</module>
<module platform="android">facebook</module>
</modules>
<deployment-targets>
<target device="android">true</target>
<target device="ipad">false</target>
<target device="iphone">true</target>
<target device="mobileweb">false</target>
<target device="windows">false</target>
</deployment-targets>
<sdk-version>5.2.2.GA</sdk-version>
<plugins>
<plugin version="1.0">ti.alloy</plugin>
</plugins>
<property name="appc-app-id" type="string">574fe360cdc3903902cd</property>
</ti:app>
我错过了什么吗?
答案 0 :(得分:1)
那是因为你现在正在使用64位设备。如果您使用的是过时的模块,那么您需要使用最新的模块。如果是最新的那个,那么您可能需要更新您的xcode。对于Appcelerator,一般建议使用更新的所有内容。
您可以在此处找到更多信息:Facebook module is no longer 64 bit in appcelerator 5.2GA
答案 1 :(得分:0)
更新Xcode时遇到相同的问题。我花了几个小时来解决此问题,最后我发现未设置证书。因此,我选择了临时配置文件进行开发,并且运行良好。确保正确选择了证书。