找不到模块:facebook for architecture:x86_64

问题描述 投票:0回答:2

昨天我为我的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>

我错过了什么吗?

mobile appcelerator titanium-mobile appcelerator-titanium
2个回答
1
投票

那是因为你现在正在使用64位设备。如果您使用的是过时的模块,那么您需要使用最新的模块。如果是最新的那个,那么您可能需要更新您的xcode。对于Appcelerator,一般建议使用更新的所有内容。

你可以在这里找到更多信息:Facebook module is no longer 64 bit in appcelerator 5.2GA


0
投票

当我更新我的Xcode时,我遇到了同样的问题。我花了好几个小时来解决这个问题,终于发现我的证书没有设置好。所以我选择临时配置文件进行开发并且工作得很好。确保正确选择了您的证书。

© www.soinside.com 2019 - 2024. All rights reserved.