I'm on the alpa testing stage of the application that I'm building. It's pure js, no alloy.
Everything runs fine when ran from the studio and I've used the IPA build by it to send it out to 2 other testers (iPhone 5c and 6 Plus). The 5c runs fine, however the 6 Plus keeps reporting that it get's the following error:
Couldn't find module: ui/common/MasterView for architecture: x86_64
That was kind of odd, given that the simulators and my physical devices (4S with 9.1 and 6 with 8.3) worked fined.
I was finally able to reproduce the issue by building for the simulator from the CLI with the following command. I also ran with debug level and saw the line below.
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
Here is the output of the build command and also the output of 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.
The "flow" is so: app.js -> ui/handheld/ios/ApplicationWindow.js -> my stuff
If I move my ApplicationWindow.js into the expected location and change the name it works fine. Is there an undocumented feature that requires to have files named in specific ways (besides app.js).
Hopefully is just something odd and doesn't make a difference if I change my application in the way that it works (renaming the file and moving it).
Related
When we try to run app on iOS Simulator, build always fails with below errors-
[WARN] : The app is using native modules (ti.safaridialog,analytics.google) that do not support arm64 simulators, we will exclude arm64. This may fail if you're on an arm64 Apple Silicon device.
[ERROR] : 2021-06-04 11:00:55.176 xcodebuild[10841:1328412] [MT] PluginLoading: Required plug-in compatibility UUID F56A1938-XXXXXXXX-493D-87EE6C415E4D for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/RSImageOptimPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld /Users/amar/Documents/MyApp-Appcel-build/MyApp-New-Setup/build/iphone/build/Intermediates/Project.build/Debug-iphonesimulator/Project.build/Objects-normal/x86_64/Binary/Project normal x86_64
[ERROR] : (1 failure)
tiapp.xml-
<modules>
<module platform="iphone">ti.safaridialog</module>
<module platform="iphone">analytics.google</module>
</modules>
When we remove analytics.google module, it builds well.
Please suggest.
Operating System
Name = macOS
Version = 11.3
Architecture = 64bit
# CPUs = 4
Memory = 8589934592
Node.js
Node.js Version = 12.13.0
npm Version = 6.12.0
Titanium CLI
CLI Version = 5.3.2
Titanium SDK
SDK Version = 9.0.3.GA
SDK Path = /Users/amar/Library/Application Support/Titanium/mobilesdk/osx/9.0.3.GA
Target Platform = iphone
Note- earlier we were able to build same source code , not sure what updates causing this issue now.
I have up-to-date OSX Sierra, up-to-date XCode with applicable plugins, and an iPhone 6 simulator open and ready.
I have followed all the directions at https://flutter.io/setup-macos/#ios-setup.
When I "flutter run" from Terminal, the app fails to install on the simulator with message:
Could not build the application for the simulator.
Error launching application on iPhone 6.
Here is what Terminal said...
Launching lib/main.dart on iPhone 6 in debug mode...
Running pod install... 8.5s
Running Xcode build... 24.1s
Failed to build iOS app
Error output from Xcode build:
↳
2017-11-22 13:13:38.122 xcodebuild[47659:25935636] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-13510/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details: unexpected successful exit code from cancelled command <C0009:'CpResource app.flx':P12>
Object: <PBXTargetBuildContext: 0x7fccf1235200>
Method: -createCommandInvocationRecordFromInvocation:
Thread: <NSThread: 0x7fccf2847ea0>{number = 16, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CopyPlistFile /Users/deborah/Desktop/chq_emulator/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist Runner/GoogleService-Info.plist
(1 failure)
Xcode's output:
↳
Build settings from command line:
ARCHS = x86_64
BUILD_DIR = /Users/deborah/Desktop/chq_emulator/build/ios
ONLY_ACTIVE_ARCH = YES
SDKROOT = iphonesimulator11.1
=== CLEAN TARGET leveldb-library OF PROJECT Pods WITH CONFIGURATION Debug ===
... list of subsidiary infomation ...
Could not build the application for the simulator.
Error launching application on iPhone 6.
Anyone else out there with advice for how to get Flutter going on the simulator?
Try running your Xcode first and make sure that it's up-to-date. Open the {flutter_project}/ios build on Xcode then try to run the iOS project on the Simulator from there.
If you're still having issues, you can run this command on your Terminal. This should set the path for the active developer directory.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
I am getting Invalid Product error when I am requesting a product.
Here is the full error
[INFO] : {
[INFO] : invalid = (
[INFO] : "<Product>"
[INFO] : );
[INFO] : products = (
[INFO] : );
[INFO] : source = "[object TiStorekitProductRequest]";
[INFO] : success = 1;
[INFO] : type = callback;
[INFO] : }
I am using 6.0.1 SDK and iOS version is 10.2
I am running and testing on my iPhone 6 from Appcelerator Studio (not AdHoc, just development certificate)
Here is the example that I am using
https://github.com/appcelerator-archive/ti.storekit/blob/master/ios/example/app.js
So I have done the following
Created product in iTunesConnect which is ready to submit
My product Cleared checked for Sale
I have In-App purchase in my AppId (Apple Account)
I have Bundle Id and version in my code
In app/assets folder I added AppleIncRootCertificate.cer
receiptVerificationSandbox=(Ti.App.deployType !== 'production');
My device can make payments
My device is not jailbroken
And I have this in my xml file
com.apple.security.app-sandbox
There was one thing I didn't complete.
My bank account details were not active in iTunes Connect.
I have installed XCode 7 beta, Xamarin.iOS 8.99.4 and Xamarin Studio 5.9 on Mac OSX 10.10.5.
I refer this article. https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/ .
If I debug/run a Xamarin.iOS app on iOS Simulator (iOS9), it works well.
But when I debug/run it on my iPhone5s device (iOS9), Xamarin shows this error message.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: The Apple iOS SDK is not installed. (ex33.iOS)
The "Build Output" window show following message.
__________________________________________________
Project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj" (Build target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: iPhone
Target _DetectAppManifest:
FindItemWithLogicalName Task
Items:
Info.plist
Entitlements.plist
packages.config
LogicalName: Info.plist
ProjectDir: /Users/username/Projects/ex33/iOS
ResourcePrefix: Resources
Target _DetectSdkLocations:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : The Apple iOS SDK is not installed.
DetectSdkLocations Task
TargetFrameworkIdentifier: Xamarin.iOS
TargetArchitectures: ARMv7, ARM64
SdkVersion: <null>
XamarinSdkRoot: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
SdkRoot: <null>
SdkDevPath: /Applications/Xcode-beta.app/Contents/Developer
SdkUsrPath: <null>
SdkPlatform: <null>
SdkIsSimulator: False
Task "DetectSdkLocations" execution -- FAILED
Done building target "_DetectSdkLocations" in project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj".-- FAILED
Done building project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj".-- FAILED
Build FAILED.
Errors:
/Users/username/Projects/ex33/iOS/ex33.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_DetectSdkLocations target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : The Apple iOS SDK is not installed.
0 Warning(s)
1 Error(s)
---------------------- Done ----------------------
What can I do?
P.S. When I debug/run a app in XCode 7 beta, it works on my iPhone well.
Check the preferences in Xamarin Studio.. you may need to change the Apple SDK path to point to the Beta location.
By default, it should be looking in the default location, but that will only be present if you have the General Release (non Beta) Xcode and iOS SDK installed too.
I have developed a Blackberry Webworks Application, code signed it and deployed it on my playbook.
The problem is that, I have made some changes to my existing application, generated the sigtool.p12 file and when i try to complile it using
bbwp "MyReport.zip location" -gcsk myPassword -gp12 myPassword-buildId 2 -o "Output file locaiton"
Iam getting the following error
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[INFO] Populating application source
[INFO] Compiling WebWorks application
[INFO] Packaging the bar file
[INFO] Bar packaging complete
[INFO] Starting signing tool
barsigner error: Server returned HTTP response code: 502 for URL: http://www.rim
.net/Websigner/servlet/RDK-Waterloo
[ERROR] Signing failed
RIM signing servers sometimes are down for maintenance or for another purpose. Try to sign your application later.