- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚刚升级了 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/
这里的 IT 网络/编程学生试图完成一项作业,但我遇到了障碍。我们的任务是读取文本文件,将单词放入 ArrayList 中,并对内容执行字符串操作。我能够将单词拉入 ArrayList、按升序对内容进
编辑:我收到以下错误代码: Error adding accessory The operation couldn’t be completed. (HMErrorDomain error 2.) 和
您好,我正在尝试测试套接字激活机制,但无法连接到服务器。 curl --unix-socket/run/gunicorn.sock本地主机 curl: (7) Couldn't connect to
所以我安装了sandbox (运行 centOS)来自 hortonworks在 virtualBox带网络配置>>> bridged network我编辑了bashrc导出http_proxy和 h
我目前正在开发一个android应用程序,提交一个post请求并处理相应的响应。 我能够将发布请求发送到相应的 URL,但是当我尝试检索响应时,我得到了一半的 HTML 内容,然后是“*无法从 STD
我在将 ServiceLoader 集成到我的 Android 应用程序以集成插件系统时遇到问题。 public class StrategieClassLoader extends URLClass
我有一个类似于以下的自定义数据类型: data Token = Number Int | Otherthings 我希望能够以一种方式使用“数字”,以另一种方式使用其他东西。所以
当我尝试从 Visual Studio Code 运行一个简单的 React Native 应用程序时,我收到以下错误消息。 Scanning folders for symlinks in C:\P
我最近从Java搬到了Kotlin。将整个项目转换为Kotlin,将pom.xml转换为build.gradle。我正在使用Kotlin,Gradle,Cucumber Sernity,Appium构
我在执行docker-compose命令时遇到Powershell中的错误: 尽管从Docker Quickstart Terminal运行相同的命令可以正常工作: 最佳答案 确保首先在Powersh
当我运行docker build时,我得到了: Sending build context to Docker daemon 10.24kB WARN[11935] Couldn't run aup
我在运行 SDL 程序时遇到此错误。它编译得很好,但是窗口打开了一小会儿然后就关闭了。 这是我的代码: //Using SDL and standard IO #include #include
我正在编写一个基于 Google map 的 Android 应用程序。应用程序本身运行良好,没有任何问题。我可以看到 map ,缩放到我的当前位置等等。根据 AndroidManifest.xml,
我在实际设备上仅在生产和开发容器上都遇到了这个错误。模拟器能够很好地获取记录。这发生在通过 XCode 运行的开发构建、TestFlight 构建和 AppStore 上的实时生产构建上。 所有设备
我正在创建一个模板化的快速排序函数,它应该允许我使用迭代器对一个定制的双向链表类进行快速排序。我遇到了错误 In file included from main.cpp:21.0: quicksort
我有一个模板类和一个具有模板返回类型的函数: template class Wrapper { public: Wrapper(const T& _data) : data(_data) {
将 Jersey 从 1.15 版升级到 1.17 版后,它开始记录以下消息: Apr 2, 2013 5:13:06 PM com.sun.jersey.server.wadl.generators
关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。 这个问题是由于错别字或无法再重现的问题引起的。虽然类似的问题可能是on-topi
我有一个 android 应用程序在我将设备更新到 android 4.4 (kitkat) 之前一直运行没有问题。 现在我开始收到这个错误,并且程序的某些部分在日志 cat_ 中被破坏了_ Andr
我通过 git clone 成功安装了 Directus CMS。在数据库中创建了 15 个表。在/config 文件夹中,我的 projectkey.php 文件也已创建。安装后我想使用我的凭据登录
我是一名优秀的程序员,十分优秀!