gpt4 book ai didi

ios - 如何修复 "couldn' t 为架构找到模块 : ti. cloudpush:armv7"(Appcelerator Titanium)

转载 作者:行者123 更新时间:2023-11-29 00:55:08 25 4
gpt4 key购买 nike

我刚刚升级了 Appcelerator Studio 并将我的项目从 Titanium SDK v5.0.2.GA 更新到 5.3.0.GA,它在 Android 上运行良好(尽管我必须从 ProgressBar 中删除一个颜色属性以使其正确呈现), 但在 iOS 上它显示了一个红色的错误屏幕和以下信息...

Couldn't find module: ti.cloudpush for architecture: armv7

控制台报告以下内容...

[INFO] : App started [ERROR] : Script Error Couldn't find module:ti.cloudpush for architecture: armv7

[ERROR] : Script Error Module"ui/common/LoginWindow" failed to leave a valid exports object

[ERROR] : Script Error Module "common/Services" failed to leave a validexports object

[ERROR] : ErrorController is up. ABORTING showing of modal controller

[ERROR] : ErrorController is up. ABORTING showing ofmodal controller

Google 快速搜索表明我需要更改一些 list 文件并重新编译模块 - 但它不是我编写的模块,它是由 Appcelerator (Titanium) 提供的。

有人可以指导我解决这个问题需要什么吗?

恢复到 5.0.2.GA - 也爆炸了,所以也许 Appcelerator Studio 中的某些东西坏了,或者 Applie/XCode 有一些新的要求?

我正在通过 USB 进行部署 - 在此阶段没有 AppStore。

我的项目有以下内容(请注意,许多 UIRequiredDeviceCapability 已被注释掉,这里已经好几个月没有更改了)...

<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<id>com.devology.****.app</id>
<name>****</name>
<version>1.37</version>
<publisher>*****</publisher>
<url>https://www.****.com</url>
<description>****</description>
<copyright>****</copyright>
<icon>appicon.png</icon>
<!-- Android = appicon.png -->
<!-- <fullscreen>false</fullscreen><navbar-hidden>false</navbar-hidden>
-->
<analytics>true</analytics>
<guid>****</guid>
<property name="ti.ui.defaultunit" type="string">dp</property>
<ios>
<min-ios-ver>6.0</min-ios-ver>
<!-- 6.0 would exclude iPad 1-->
<!-- 7.0 is minimum version for armv7s-->
<plist>
<dict>
<key>NSLocationAlwaysUsageDescription</key>
<string>****</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>****</string>
<key>UISupportedInterfaceOrientations~iphone</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<!--
<key>UISupportedInterfaceOrientations~ipad</key><array><string>UIInterfaceOrientationPortrait</string><string>UIInterfaceOrientationPortraitUpsideDown</string><string>UIInterfaceOrientationLandscapeLeft</string><string>UIInterfaceOrientationLandscapeRight</string></array>
-->
<key>UIRequiresPersistentWiFi</key>
<!-- specifies whether the app requires a Wi-Fi connection. iOS maintains the active Wi-Fi connection open while the app is running. -->
<false/>
<key>UIPrerenderedIcon</key>
<false/>
<key>UIStatusBarHidden</key>
<true/>
<key>beta-reports-active</key>
<true/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>UIBackgroundModes</key>
<array>
<string>location</string>
<!--
Causes rejection by Apple, but shouldn't need backgrounded sound
because we use notifications to do this
<string>audio</string>
-->
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
<!--<string>armv7</string>-->
<!--iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad 2, iPad 3, iPad Mini -->
<!--<string>armv7s</string>-->
<!-- iPhone 5, iPad 4 -->
<string>gps</string>
<!-- You should require GPS only if your app needs location data more accurate than the cellular or Wi-fi radios might otherwise provide. -->
<string>location-services</string>
<!-- if you include 'gps' key, you should also include the location-services key -->
<!--<string>sms</string> -->
<!-- Include this key if your app requires (or specifically prohibits) the presence of the Messages app. You might require this feature if your app opens URLs with the sms scheme. -->
<!--<string>telephony</string> -->
<!-- Include this key if your app requires (or specifically prohibits) the presence of the Phone app. You might require this feature if your app opens URLs with the tel scheme. -->
<!--<string>wifi</string>-->
<!-- Include this key if your app requires (or specifically prohibits) access to the networking features of the device. -->
</array>
</dict>
</plist>
</ios>
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:versionCode="37" android:versionName="1.37">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.SOUND"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
</manifest>
<services>
<service type="interval" url="common/androidBackgroundService.js"/>
</services>
</android>
<mobileweb>
<precache/>
<splash>
<enabled>true</enabled>
<inline-css-images>true</inline-css-images>
</splash>
<theme>default</theme>
</mobileweb>
<modules>
<module platform="android">ti.cloudpush</module>
<module platform="commonjs">ti.cloud</module>
</modules>
<deployment-targets>
<target device="blackberry">false</target>
<target device="android">true</target>
<target device="ipad">false</target>
<target device="iphone">true</target>
<target device="mobileweb">false</target>
</deployment-targets>
<sdk-version>5.0.2.GA</sdk-version>
....
</ti:app>

最佳答案

正如您提到的,“但在 iOS 上它显示了一个红色错误屏幕,并显示以下消息......”,......

ti.cloudpush 模块仅适用于 Android,您也可以从 tiapp.xml 中的这些行看到它:

<modules>
<module platform="android">ti.cloudpush</module>
<module platform="commonjs">ti.cloud</module>
</modules>

现在,问题可能是您没有在需要 cloudpush 模块的地方检查操作系统。

我建议您研究一下您通过如下方式调用它的代码:

var CloudPush = require('ti.cloudpush');

因此,要使其正常工作,请使用以下代码:

var CloudPush;

if (OS_ANDROID) {
CloudPush = require('ti.cloudpush');
}

如果没有帮助,请分享一些您调用此模块的代码。

关于ios - 如何修复 "couldn' t 为架构找到模块 : ti. cloudpush:armv7"(Appcelerator Titanium),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37667507/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com