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.
Related
I'm trying to build an app for IOS made with Flutter.
I have no mac device to do the job so I'm trying to generate my IPA file from codemagic.io .
I created an account for Apple Developer Program and paid the bill.
I followed the instructions for using Codemagic, including instructions for iOS code signing : https://docs.codemagic.io/code-signing/ios-code-signing/ .
I created a repository on GitHub and generated a configuration file (codemagic.yaml).
So when I try to build my app (release version), I have the following problem:
Building iOS
1m 23s
== Building for iOS ==
> /usr/local/bin/flutter build ios --release --no-codesign
/Users/builder/clone/ios/Runner/Info.plist: Property List error: Found non-key inside <dict> at line 44 / JSON error: JSON text did not start with array or object and option to allow fragments not set.
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building fr.remax.franckehrart for device (ios-release)...
Project base configurations detected, removing.
Running pod install...
6.2s
/Users/builder/clone/ios/Runner/Info.plist: Property List error: Found non-key inside <dict> at line 44 / JSON error: JSON text did not start with array or object and option to allow fragments not set.
Running Xcode build...
Xcode build done. 48.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
../programs/flutter/.pub-cache/hosted/pub.dartlang.org/neumorphic-0.3.2/lib/src/components/selection_controls.dart:182:10: Error: The method '_NeuSelectionControls.buildToolbar' has fewer positional arguments than those of overridden method 'TextSelectionControls.buildToolbar'.
Widget buildToolbar(
^
../programs/flutter/packages/flutter/lib/src/widgets/text_selection.dart:136:10: Context: This is the overridden method ('buildToolbar').
Widget buildToolbar(
^
../programs/flutter/.pub-cache/hosted/pub.dartlang.org/neumorphic-0.3.2/lib/src/components/selection_controls.dart:222:59: Error: Too few positional arguments: 2 required, 1 given.
handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null,
^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Encountered error while building for device.
Build failed :|
Failed to build for iOS
I don't understand. Is it a problem with code signing ?
On my Apple Developer Account I can see that a certificate has been generated.
The previous step on Codemagic seems to be ok :
== Fetch code signing files from Apple Developer Portal ==
Automatically detected bundle identifier "fr.remax.franckehrart" from project
Fetch App Store signing files for bundle identifier "fr.remax.franckehrart"
Initializing Apple Developer Portal session with david.matoska#gmail.com
Using Apple Developer Portal team david matoska (HBD2Z7384F) to fetch signing files
Found App ID "fr remax franckehrart" for bundle identifier "fr.remax.franckehrart"
Found code signing certificate "Apple Push Services: fr.remax.franckehrart"
Found code signing certificate "iOS Distribution: david matoska"
Found iOS Distribution provisioning profile "fr remax franckehrart app_store 1597698130"
> keychain initialize
Initialize new keychain to store code signing certificates at /var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain
Create keychain /var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain
Set keychain /var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain timeout to "no timeout"
Set keychain /var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain to system default keychain
Unlock keychain /var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain
> keychain add-certificates --certificate /tmp/aps_uiasoh6i.p12 --certificate-password #env:CERTIFICATE_PASSWORD
Add certificates to keychain /private/var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain
Searching for files matching /tmp/aps_uiasoh6i.p12
Add certificate /tmp/aps_uiasoh6i.p12 to keychain /private/var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain
1 identity imported.
> keychain add-certificates --certificate /tmp/ios_distribution_ln2czakc.p12 --certificate-password #env:CERTIFICATE_PASSWORD
Add certificates to keychain /private/var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain
Searching for files matching /tmp/ios_distribution_ln2czakc.p12
Add certificate /tmp/ios_distribution_ln2czakc.p12 to keychain /private/var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/build_4qw6y93s.keychain
1 identity imported.
== Install Flutter dependencies ==
> /usr/local/bin/flutter packages pub get
Resolving dependencies...
> async 2.4.2 (was 2.4.1) (2.5.0-nullsafety available)
+ characters 1.0.0 (1.1.0-nullsafety.2 available)
+ clock 1.0.1 (1.1.0-nullsafety available)
> collection 1.14.13 (was 1.14.12) (1.15.0-nullsafety.2 available)
+ fake_async 1.1.0 (1.2.0-nullsafety available)
> matcher 0.12.8 (was 0.12.6) (0.12.9 available)
> path 1.7.0 (was 1.6.4) (1.8.0-nullsafety available)
> stack_trace 1.9.5 (was 1.9.3) (1.10.0-nullsafety available)
> test_api 0.2.17 (was 0.2.15) (0.2.18 available)
> typed_data 1.2.0 (was 1.1.6) (1.3.0-nullsafety.2 available)
These packages are no longer being depended on:
- quiver 2.1.3
Downloading flutter_rename_app 1.0.0...
Downloading flutter_launcher_icons 0.7.5...
Downloading neumorphic 0.3.2...
Downloading curved_navigation_bar 0.3.3...
Downloading ansicolor 1.0.2...
Downloading process_run 0.10.12+1...
Downloading image 2.1.12...
Downloading xml 3.6.1...
Downloading petitparser 2.4.0...
Downloading crypto 2.1.4...
Changed 11 dependencies!
Can you please help me ?
So ... It worked :) !!!!!!
I had to change my pubspec.yaml file.
I took the 0.4.0 version of Neumorphic (versus 0.3.2 version).
#Captivity , thank you again for your help with the info.plist file.
Bye.
Okey, Your 'key' UIViewControllerBasedStatusBarAppearance there is no assigned value.
I am giving a try of GluonVM on iOS with Oracle JDK 10.2.
I have noticed that although I have "com.javasuns.test" in src/ios/Default-Info.plist, when I run the "./gradlew launchIOSDevice" command, the bundle ID is taken from the mainClassName defined in build.gradle.
Here is my example:
Default-Info.plist
<key>CFBundleIdentifier</key>
<string>com.javasuns.test</string>
build.gradle
dependencies {
compile 'com.gluonhq:charm:5.0.2'
}
mainClassName = 'test.TestFX'
fxmobile {
javafxportsVersion = '8.60.12'
ios { ...... }
}
./gradlew launchIOSDevice
com.gluonhq.higgs.Higgs: non-fatal issue for class javafx.scene.web.JSObjectIosImpl (no known superclass)
command to dsymutil: xcrun dsymutil -o /Volumes/MyApps/testFX/build/gvm/testFX.app.dSYM /Volumes/MyApps/testFX/build/gvm/testFX.app/testFX
Error getting ProvisioninedDevices, ignore
created
created
created
created
Error getting ProvisioninedDevices, ignore
created
provprofile asked, bid = test.TestFX and origbid = test.TestFX
provprofile asked, bid = test.* and origbid = test.TestFX
provprofile asked, bid = * and origbid = test.TestFX
No provisioning profile found matching signing identity 'iPhone Developer: #NAME#' and app bundle ID 'test.TestFX'
will return PP null
No provisioning profile found matching signing identity 'iPhone Developer: #NAME#' and app bundle ID 'test.TestFX'
will return PP null
No provisioning profile found matching signing identity 'iPhone Developer: #NAME#' and app bundle ID 'test.TestFX'
will return PP null
Warning, getProvisioningProfile is failing
java.lang.NullPointerException
I have managed to bypass the issue by creating a new java main class named "test.java" under "com.javasuns" package (ignoring that java type names usually start with an uppercase letter).
build.gradle (Changed)
mainClassName = 'com.javasuns.test'
However, now a new error appears that I do not know how to get through it:
13:17:45:491] BosonAppSupport: Validating codesign...
[SUB] /Volumes/MyApps/testFX/build/gvm/testFX.app: valid on disk
[SUB] /Volumes/MyApps/testFX/build/gvm/testFX.app: satisfies its Designated Requirement
[13:17:46:269] BosonAppSupport: Validation codesign result: true
[13:17:46:270] BosonAppSupport: Codesign done
[13:17:46:333] BosonAppBuilder: UploadInternal start
[13:17:51:041] : Upload Progress: 10%
[13:17:51:573] : Upload Progress: 20%
[13:17:52:104] : Upload Progress: 30%
[13:17:52:916] : Upload Progress: 40%
[13:17:53:947] : Upload Progress: 50%
[13:17:54:696] : Upload Progress: 60%
[13:17:55:520] : Upload Progress: 70%
[13:17:56:372] : Upload Progress: 80%
[13:17:57:367] : Upload Progress: 90%
[13:17:58:414] : Upload Progress: 100%
[13:17:58:460] BosonAppBuilder: uploadInternal done
[13:17:58:796] : Progress: CreatingStagingDirectory [5%]
[13:17:58:798] : Progress: ExtractingPackage [15%]
[13:17:58:799] : Progress: InspectingPackage [20%]
[13:17:58:802] : Progress: TakingInstallLock [20%]
[13:17:58:804] : Progress: PreflightingApplication [30%]
[13:17:58:805] : Progress: InstallingEmbeddedProfile [30%]
[13:17:58:812] : Progress: VerifyingApplication [40%]
[13:17:58:954] : Error: APIInternalError, Description: Failed to unhide archs in executable file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.LXITKr/extracted/testFX.app/TestApp
> Task :launchIOSDevice
[13:17:58:955] BosonAppBuilder: Installing finished due to an error.
[13:17:58:958] BosonAppBuilder: Install internal failed
[13:17:58:958] BosonAppBuilder: Something went wrong. App wasn't installed on the device
Any ideas of how I can solve both issues?
There are two main keys that you have to set properly: CFBundleIdentifier and CFBundleExecutable.
You can check the sample SingleView-GluonVM:
Main className (see build.gradle): com.gluonhq.samples.singleviewgvm.SingleViewWithGluonVM
CFBundleIdentifier (see Default-info.plist): com.gluonhq.samples.singleviewgvm.SingleViewWithGluonVM
and
Gradle project (see settings.gradle): singleview-gluonvmApp
CFBundleExecutable (see Default-info.plist): singleview-gluonvmApp
or the sample DeepLearning-LinearClassifier, with similar settings.
As you can see, the Gluon IDE plugin sets by default the CFBundleIdentifier as the main class name and the CFBundleExecutable as the name of your mobile project.
CFBundleIdentifier
When you want to deploy your app to iOS, the provisioning profile should have this bundle ID. However, you can also use wildcards. Just make sure you have downloaded and installed to your machine the provisioning profile (it should be under /Users/<user>/Library/MobileDevice/Provisioning Profiles), with extension .mobileprovision.
If you preview it (from Finder for instance), the AppID from this file could be something like <TEAM ID>.<mainClassName>, or <TEAM ID>.*.
This is where the jfxmobile plugin sets the appId.
CFBundleExecutable
About the CFBundleExecutable, this is the name your application under build/gvm/ will have. It is mandatory in this case that it uses the name of your project (as in the gradle name).
This is where the jfxmobile plugin sets the appName.
You will find your app under /<appName>/build/gvm/<appName>.app (though Finder will show just <appName>:
If you see the content of the app, you will find the executable file under /<appName>/build/gvm/<appName>.app/<appName>:
The error you are getting;
[13:17:58:954] : Error: APIInternalError, Description: Failed to unhide archs in executable file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.LXITKr/extracted/testFX.app/TestApp
shows testFX.app/TestApp, so probably your project name is testFX, but should be TestApp?
Alternatively, you can simple match the value you have set in CFBundleExecutable, by adding a settings.gradle file to your project, with:
rootProject.name = "<your bundle executable value>"
I've tried running this application:
https://github.com/appcelerator/titanium-angular
Command-line call to run iOS app (appc run -p ios) fails with this output:
[INFO] Launching iOS Simulator
-- Start simulator log -----------------------------------------------
--------
[INFO] AngularDemo/1.0.0 (6.3.0.3620088)
[ERROR] Script Error {
[ERROR] column = 35;
[ERROR] line = 30;
[ERROR] message = "Can't find variable: Symbol";
Can anyone help me run this iOS application?
Try using the SDK version 7.5.1.GA and set it on the tiapp.xml. You are using old CLI. Try updating by appc setup. Thanks.
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).
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.