找不到模块:架构的 facebook:x86_64
Couldn't find module: facebook for architecture: x86_64
昨天我为我的 appcelerator titanium 应用程序安装了 facebook 模块,它在模拟器和设备上运行良好。
当我今天早上启动模拟器时,我收到这条消息:找不到模块:架构的 facebook:x86_64
你知道这个错误吗?在我的 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>
我错过了什么吗?
那是因为您现在使用的是 64 位设备。如果您使用的是过时的模块,那么您需要使用最新的模块。如果它是最新的,那么您可能需要更新您的 xcode。一般而言,对于 Appcelerator,建议使用所有已更新的内容。
您可以在此处找到更多信息:
我在更新 Xcode 时遇到了同样的问题。我花了几个小时来解决这个问题,最后发现我的证书没有设置。所以我选择了临时配置文件进行开发并且工作得很好。确保您的证书选择正确。
昨天我为我的 appcelerator titanium 应用程序安装了 facebook 模块,它在模拟器和设备上运行良好。 当我今天早上启动模拟器时,我收到这条消息:找不到模块:架构的 facebook:x86_64 你知道这个错误吗?在我的 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>
我错过了什么吗?
那是因为您现在使用的是 64 位设备。如果您使用的是过时的模块,那么您需要使用最新的模块。如果它是最新的,那么您可能需要更新您的 xcode。一般而言,对于 Appcelerator,建议使用所有已更新的内容。
您可以在此处找到更多信息:
我在更新 Xcode 时遇到了同样的问题。我花了几个小时来解决这个问题,最后发现我的证书没有设置。所以我选择了临时配置文件进行开发并且工作得很好。确保您的证书选择正确。