【问题标题】:iOS development IPA cannot find module for architecture arm64iOS 开发 IPA 找不到架构 arm64 的模块
【发布时间】:2016-05-16 18:32:27
【问题描述】:

我正在构建应用程序的 alpa 测试阶段。纯js,没有合金。

从工作室运行时一切正常,我使用它构建的 IPA 将其发送给其他 2 位测试人员(iPhone 5c 和 6 Plus)。 5c 运行良好,但 6 Plus 不断报告它得到以下错误:

找不到模块:ui/common/MasterView 架构:x86_64

这有点奇怪,因为模拟器和我的物理设备(4S 和 9.1 和 6 和 8.3)工作正常。

我终于能够通过使用以下命令从 CLI 构建模拟器来重现该问题。我还以调试级别运行并看到下面的行。

appc ti build --platform ios --sdk 5.1.1.GA --target simulator -V "MyDeveloperCertificate" -P DevelopmentiOSProvisioningProfile

[DEBUG] Loading: /Users/lmtzusr/Library/Developer/CoreSimulator/Devices/C5FDC6E8-16B3-400A-BE02-7395B73C5060/data/Containers/Bundle/Application/E20F949C-712E-4DCC-A6F1-77537C3CC85C/MyNew.app/ui/common/MasterView.js, Resource: ui/common/MasterView_js 

这是 build 命令的输出,也是 info 的输出

Appcelerator Command-Line Interface, version 5.1.0
Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.

2/6/2016, 10:18:14 PM

Operating System
  Name                        = Mac OS X
  Version                     = 10.10.5
  Architecture                = 64bit
  # CPUs                      = 8
  Memory                      = 34359738368

Node.js
  Node.js Version             = 4.2.2
  npm Version                 = 2.14.7

Titanium CLI
  CLI Version                 = 5.0.5

Titanium SDK
  SDK Version                 = 5.1.1.GA
  SDK Path                    = /Users/lmtzusr/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA
  Target Platform             = iphone

Command
  /usr/local/bin/node /Users/lmtzusr/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform ios --sdk 5.1.1.GA --target simulator -V MyDeveloperCertificate -P DevelopmentiOSProvisioningProfile --config-file /var/folders/1m/t5q8800n5hd4336871js49nm0000gn/T/build-1454793489011.json --log-level info --no-banner

[INFO]  Found Titanium module id=dk.napp.drawer version=1.2.4 platform=iphone deploy-type=development path=/Users/lmtzusr/Projects/TitaniumWorkspace/classic_test_1/modules/iphone/dk.napp.drawer/1.2.4
[INFO]  Found Titanium module id=analytics.google version=3.1.0 platform=iphone deploy-type=development path=/Users/lmtzusr/Projects/TitaniumWorkspace/classic_test_1/modules/iphone/analytics.google/3.1.0
[INFO]  Deploy type: development
[INFO]  Building for target: simulator
[INFO]  Building using iOS SDK: 9.2
[INFO]  Building for iOS Simulator: iPhone 6s Plus
[INFO]  Building for device family: iphone
[INFO]  Minimum iOS version: 7.1
[INFO]  Debugging disabled
[INFO]  Profiler disabled
[INFO]  Set to copy files instead of symlinking
[INFO]  Forcing rebuild: target changed since last build
[INFO]    Was: device
[INFO]    Now: simulator
[INFO]  Initializing the build directory
[INFO]  Creating Xcode project
[INFO]  Creating Entitlements.plist
[INFO]  Creating Info.plist
[INFO]  Disabling ATS
[INFO]  Creating main.m
[INFO]  Creating Xcode config files
[INFO]  Copying Titanium libraries
[INFO]  Copying Titanium iOS files
[INFO]  Creating debugger and profiler plists
[INFO]  Analyzing Resources directory
[INFO]  Analyzing platform files
[INFO]  Analyzing module files
[INFO]  Analyzing localized launch images
[INFO]  Analyzing CommonJS modules
[INFO]  Creating asset catalog
[INFO]  Creating app icon set
[WARN]  The default icon "DefaultIcon.png" contains an alpha channel and will be flattened against a white background
[WARN]  You may create an image named "DefaultIcon-ios.png" that does not have an alpha channel in the root of your project
[WARN]  It is highly recommended that the DefaultIcon.png be 1024x1024
[INFO]  Missing 6 app icons, generating missing icons
[INFO]    Resources/iphone/DefaultIcon-Small@2x.png - Used for iPhone, iPad - size: 58x58
[INFO]    Resources/iphone/DefaultIcon-Small@3x.png - Used for iPhone - size: 87x87
[INFO]    Resources/iphone/DefaultIcon-Small-40@2x.png - Used for iPhone, iPad - size: 80x80
[INFO]    Resources/iphone/DefaultIcon-Small-40@3x.png - Used for iPhone - size: 120x120
[INFO]    Resources/iphone/DefaultIcon-60@2x.png - Used for iPhone - size: 120x120
[INFO]    Resources/iphone/DefaultIcon-60@3x.png - Used for iPhone - size: 180x180
[INFO]  Creating launch image set
[INFO]  App thinning disabled, skipping asset image sets
[INFO]  Processing JavaScript files
[INFO]  Writing app properties
[INFO]  Writing i18n files
[INFO]  Processing Titanium symbols
[INFO]  Removing files
[INFO]  Invoking xcodebuild
[INFO]  Finished building the application in 54s 294ms
[INFO]  Launching iOS Simulator
-- Start simulator log -------------------------------------------------------
[ERROR] Script Error Couldn't find module: ui/common/MasterView for architecture: x86_64



appc ti info -t ios
Appcelerator Command-Line Interface, version 5.1.0
Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.

Xcode
  7.2 (build 7C68) - Xcode default
    Install Location          = /Applications/Xcode.app/Contents/Developer
    iOS SDKs                  = 9.2
    iOS Simulators            = 9.2
    Watch SDKs                = 2.1
    Watch Simulators          = 2.1
    Supported by TiSDK 5.1.2.GA = yes
    EULA Accepted             = yes
    Teams                     = redacted MyDeveloperCertificate - Individual (active)
                              = redacted MyOrgaCert - Company/Organization (active)

iOS Keychains
  login.keychain              = /Users/lmtzusr/Library/Keychains/login.keychain
  System.keychain             = /Library/Keychains/System.keychain

iOS Development Certificates
/Users/lmtzusr/Library/Keychains/login.keychain
  MyDeveloperCertificate (redacted)
    Not valid before          = 5/18/2015 12:14 PM
    Not valid after           = 5/17/2016 12:14 PM
  MyOrgaCert (redacted)
    Not valid before          = 1/17/2016 2:28 PM
    Not valid after           = 1/16/2017 2:28 PM

iOS Distribution Certificates
  None

Apple WWDR Certificate
  Apple WWDR                  = installed

Development iOS Provisioning Profiles
  MainDev
    UUID                      = redacted
    App Prefix                = redacted
    App Id                    = com.domain.app
    Date Created              = 1/30/2016 9:16 PM
    Date Expired              = 1/29/2017 9:16 PM

Distribution iOS Provisioning Profiles
  None

Ad Hoc iOS Provisioning Profiles
  AdHocMain
    UUID                      = redacted
    App Prefix                = redacted
    App Id                    = com.domain.app
    Date Created              = 1/31/2016 6:11 PM
    Date Expired              = 5/1/2016 4:51 PM

iOS Simulators
9.2
  iPad 2 (ipad)
    UDID                      = D1AFF6C7-CB58-482B-B59D-FCAEB34F8924
    Supports Watch Apps       = no
  ..
  ..
  iPhone 6s Plus (iphone)
    UDID                      = C5FDC6E8-16B3-400A-BE02-7395B73C5060
    Supports Watch Apps       = yes

Connected iOS Devices
  None

iOS Issues
  !  Unable to find any valid iOS distribution provisioning profiles.
     This will prevent you from packaging apps for AppStore distribution.
     You will need to login into http://appcelerator.com/ios-dist-certs with your Apple Download
     account, then create, download, and install a profile.

  !  Unable to find any valid iOS production distribution certificates.
     This will prevent you from packaging apps for distribution.
     You will need to login into http://appcelerator.com/ios-dist-certs with your Apple Download
 account, then create, download, and install a certificate.

【问题讨论】:

  • 能不能在终端打开的项目里试试ti-64。
  • @SharifAbuDarda x86_64 就在那里,因为它找不到 CommonJS 或本地模块。不相关
  • @user1927033 你能在需要这个 MasterView 的地方添加代码吗?
  • @FokkeZandbergen 那个问题 - 在我的整个项目中我没有一个文件、commonJS 或任何名为 masterview 的东西。我怀疑这是使用 iOS 的默认主从视图构建的一些问题......
  • @user1927033 很明显,这个 file 不存在,但是如果你对应用程序的所有 Resources 目录中的“MasterView”进行全文搜索,你是 100 % 确定它在任何地方都没有被引用/需要?

标签: ios appcelerator appcelerator-titanium


【解决方案1】:

“流程”是这样的:app.js -> ui/handheld/ios/ApplicationWindow.js -> 我的东西

如果我将ApplicationWindow.js 移动到预期位置并更改名称,它可以正常工作。是否有未记录的功能需要以特定方式命名文件(除了 app.js)。 希望只是一些奇怪的东西,如果我以它的工作方式更改我的应用程序(重命名文件并移动它),并没有什么不同。

【讨论】:

  • 您正在尝试引用 ui/common/masterview,但似乎在执行时无法在适当的路径中找到它。您能否提及导致问题的路径以及解决问题的路径?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-01-24
  • 2020-01-24
  • 2019-09-21
  • 1970-01-01
  • 2021-04-10
  • 2018-08-08
相关资源
最近更新 更多