Nativescript - cannot upload ipa file to itunes - app-store-connect

I'm doing the following to upload my ipa file to itunes connect.
tns publish ios MY-ITUNES-ACCOUNT-EMAIL APP-SPECIFIC-PASSWORD -ipa app.ipa
I'm getting the following error - in red
{
"serviceErrors" : [ {
"code" : "-20101",
"message" : "Your AppleĀ ID or password was incorrect."
} ]
}
This used to work - about 2-3 weeks ago.

Seems to be problem with tns cli version. Stick to version 5.3.1 for now solves the issue.

I think tns publish ios command has been changed a bit for NativeScript 6. I can publish my apps like this now:
tns publish ios myuser#mydomain.com --appleApplicationSpecificPassword xxxx-xxxx-xxxx-xxxx --ipa myapp.ipa
You should change the values with your information, of course.
With this command, you will be prompted to enter you Apple ID password and 6 digit 2FA code. After that, the upload will start and finish as you expected.
Finally, here is the official documentation: https://docs.nativescript.org/tooling/docs-cli/publishing/publish-ios

Related

Expo Apple Pay Stripe Merchant Identifier Issue

I am trying to implement Apple Pay on my Expo managed app.
I followed the documentation here https://stripe.com/docs/apple-pay except adding the capability in XCode (because it's an Expo app and it doesn't use Expo).
I have included my merchant ID in the plugins folder in my app.json.
And I have also wrapped my whole app in the <StripeProvider /> and included the merchantIdentifier there.
<StripeProvider merchantIdentifier="merchant.xxx.xxx.xxx" >
<App />
</StripeProvider>
enter code here
I believe that I've followed the documentation laid out by Expo and Stripe.
If I run expo config --type introspect I can see the entitlement there:
ios: {
entitlements: {
'aps-environment': 'development',
'com.apple.developer.in-app-payments': [
'merchant.com.xxx.xxx'
]
},
I then run eas build -p ios and create an ipa file. I then upload that to TestFlight to give the functionality a test on a real device.
But as soon as I try to call presentApplePay(), I get the error You must provide merchantIdentifier.
What am I missing here? Any help would be greatly appreciated.
You must include the publishableKey as well.

Missing config.json stencil CLI

I'm trying to do some work for a client, but cannot get their bigcommerce site running locally. I have installed stencil CLI (v3.1.1) and downloaded the theme from the bigcommerce dashboard (all files). from the root of the theme i ran "stencil init", then "npm i" and "stencil start".
when i run stencil start, it throws an error saying there's no config.json file.
this is the error i get
How do i generate the config.json file?
The only config file I see is config.stencil.json.
I have also tried running "stencil pull" in hopes that it would pull the config, but it throws another error: "not ok -- Error: Could not fetch active theme details for channel 1: Request failed with status code 404"
Stencil-cli version:
3.1.1
Node version:
12
NPM version:
6.14.15
OS:
mac big sur
Stencil 3.1.1 has been deprecated for some time now. I believe the current version is 3.8. As of 4 months ago, anything below 3.5 will not run (https://developer.bigcommerce.com/changelog#publications/required-stencil-cli-version-set-to-3-5-0).
If you don't have a config.json file in your project, you will need to get the one from the client's store. Try downloading their theme again. It should come through.
Edit: It is possibly the case that you need a new API token. Try making a new one for your store. Make sure the following scopes are set:
Themes: Modify
Settings & Information: Modify
Sites & Routes: Read-only (or Modify)
Documentation for creating a new API account: https://support.bigcommerce.com/s/article/Store-API-Accounts#creating

Xcode 7 Code Signing Resource Rules Path issue

I have the latest Xcode 7 and iOS 9 SDK installed on my El Caption. I just get an issue about the Code Signing Resource Rules Path:
If I specify the CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist then I can not upload the IPA to iTunesConnect because:
ERROR ITMS-90339: "This bundle is invalid. The Info.plist contains an invalid key 'CFBundleResourceSpecification' in bundle
However, if I removed this CODE_SIGN_RESOURCE_RULES_PATH the xcrun PackageApplication will fail as:
/var/folders/9v/_4lr188x5h5019b4bsq2_fyr0000gn/T/ir4fp619hu/Payload/MyApp.app/ResourceRules.plist: cannot read resources
Any walk around?
The issue is that xcrun uses the resource path internally in its script.
The work around to is go and directly edit the script ourselves. I had the same issue and the solution i posted here worked for me. Thought it'd help you as well.

Cannot package a debug application (cannot create .apk)

I am following this tutorial to create .apk file:
http://docs.sencha.com/touch/2-0/#!/guide/native_android
On step#4 when I run the following command nothing happens:
sencha package run packager.json
Absolutely nothing happens. There is no success/error message shown and command prompt is ready to take the next command.
Here is my config file for debugging:
{
"applicationName":"myApp",
"applicationId":"com.techleadz.myApp",
"iconName":"resources/icons/Icon~ipad_myApp.png",
"versionString":"1.0",
"outputPath":"build/",
"inputPath":"build/native/",
"configuration":"Debug",
"platform":"AndroidEmulator",
"deviceType":"Universal",
"certificatePath":"C:/Users/Administrator/.android/debug.keystore",
"certificateAlias":"androiddebugkey",
"sdkPath":"C:/android-sdk-windows/",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
What I am doing wrong?
you have not specified a certificate password or an android list target you must have installed the disk image for the list target that you are trying to include and target must be atleast 7
Are you using Ubuntu ?
if so there is some problem in sencha tools for packaging for native.
Thanks

Building native iOS app Sencha 2 "Bundle Seed ID is missing from config file"

I dont understand this error message, when I run the following command I get:
C:\projectsGit\mybipper\portal\bk-servlets\src\main\webapp\parentapp>sencha package build ../nativeBuild/packager.json
[INFO] The application was successfully packaged
Bundle Seed ID is missing from config file
Failed to package application
My packager.json is :
{
"applicationName":"MobileKids",
"applicationId":"TC3BU5LD52.com.bipper.mobilekids",
"versionString":"1.1",
"iconName":"icon.png",
"inputPath":".",
"outputPath":"../build",
"configuration":"Debug",
"platform":"iOS",
"deviceType":"Universal",
"certificatePath":"Certificate_key.p12",
"certificateAlias":"iPhone Developer: Thomas Vervik (TC3BU5LD52)",
"sdkPath":"C:/Program Files (x86)/Android/android-sdk",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
This was a bug in ST2: http://www.sencha.com/forum/showthread.php?192946-2.0.1RC-Native-build-seem-to-be-broken&s=5fd0b1665305e83413dea48c9b4ee510
Are you running the latest version? Also, there are some workaround provided in the above post.