Fastlane upload_to_play_store returns an error `apkNotificationMessageKeyBundleRequiresPlaySigning` - fastlane

Fastlane builds a bundle and I can upload it manually, but if I run
upload_to_play_store(
track: 'internal',
package_name: "package-name",
skip_upload_apk: true
)
it throws the following error:
Google Api Error: apkNotificationMessageKeyBundleRequiresPlaySigning:
For uploading an AppBundle you must be enrolled in Play Signing.
The Play Signing is enabled, I released a version after I enabled it. What may be a reason for the error?

Enrolling in the new singing option through Google Play Console would be best.

Related

Error: 'Flutter/Flutter.h' file not found

I added firebase_crashlytics to my Flutter project and followed the Firebase guideline in order to install it.
On flutter run the app works well without any error.
ONLY DURING flutter build ipa I get this:
Error (Xcode): 'Flutter/Flutter.h' file not found
/project/ios/Runner/GeneratedPluginRegistrant.h:9:8
Error (Xcode): failed to emit precompiled header
'/Users/macnew/Library/Developer/Xcode/DerivedData/Runner-biyumwxiyqxyjkacscuqcbwbjroj/Build/Intermediates.no
index/ArchiveIntermediates/Runner/PrecompiledHeaders/Runner-Bridging-Header-swift_26UGEQJVHLD5H-clang_19ZWN9O
PIOOJI.pch' for bridging header '/project/ios/Runner/Runner-Bridging-Header.h'
Encountered error while archiving for device.
Any advice about this?
I'm using firebase_crashlytics 2.8.6 (latest version) and flutter 2.10.5 (without null-safety).
Since I tried every solution given on StackOverflow and Github (Flutter repo), here you have the solution:
Delete the "ios" folder
Run the app and create the iOS project
Inside the "ios" folder ("cd ios"), run the command "pod install"
Follow the official guide by the iOS side
This is the only solution that works.

Firebase App Distribution doesn't work with Codemagic

I've setup Firebase App Distribution for my Flutter Project and it works perfectly local. But if I try to run it on Codemagic I get teh following error:
Error: failed to fetch app information. HTTP Error: 403, Firebase App Distribution API has not been used in project XXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseappdistribution.googleapis.com/overview?project=XXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
The XXX are placeholders for a project ID. But I have no Project with that I. If I open the url I get a message that I'm not justified.
Here is my fastlane command:
lane :deploy_dev_firebase do
firebase_app_distribution(
app: "***330f",
testers: "***#gmail.com",
release_notes: "release",
firebase_cli_path: "/usr/local/bin/firebase",
apk_path: "../build/app/outputs/apk/dev/release/app-dev-release.apk"
)
end
And my codemagic Post-build script:
#!/bin/bash
gem install bundler
cd android
bundle install
bundle exec fastlane deploy_dev_firebase

fastlane - cant publish to google playstore

I can't publish my App Bundle to Google PlayStore via Google Cloud and CodeMagic.io.
The Error is below:
Publishing failed :| Failed to publish: The bundle targets unrecognized languages: fb
Previously, this AppBundle build using Flutter.
any idea how to solve this error?
Update:
If I choose to build APK instead of App Bundle. it will succeed to be uploaded to the play store.
Although the size increase from 23 MB to 31 MB...
Thank You
I ran into the same issue. I added this to the app build.gradle under the defaultConfig:
defaultConfig {
resConfigs "en"
}

bitrise could not find transporter at Applications/Xcode-beta.app/Contents/Developer

I am trying to upload ios archive to testflight using bitrise and fastlane but after archive success I get the error "Could not find transporter at Applications/Xcode-beta.app/Contents/Developer" and the workflow fails.
Here is my fastlane file
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
increment_build_number(xcodeproj: "APPNAME.xcodeproj")
match(type: "appstore")
cocoapods
build_app(workspace: "APPNAME.xcworkspace", scheme: "APPNAME")
upload_to_testflight
commit_version_bump(
message: "Fastlane iOS: Released new build #{lane_context[SharedValues::BUILD_NUMBER]} [ci skip].",
xcodeproj: "./APPNAME.xcodeproj",
force: true
)
clean_build_artifacts
end
end
Xcode 11 doesn't include the Transporter application anymore.
https://developer.apple.com/videos/play/wwdc2019/301/
I first got this error and so I downloaded Transporter off the apple help page. However, Transporter 2x is not compatible with xcode 11. You need to use the version that is bundled with xcode 10x.
This github thread contains a download link to the appropriate binary.
If you have already installed the incorrect version of Transporter in the default path that fastlane expects /usr/local/itms, then use the environment variable FASTLANE_ITUNES_TRANSPORTER_PATH to specify a path to iTMSTransporter.cmd.
Specifying this path solved my issue and I was able to release to the apple store with xcode 11.

Code Signing Error: Verify the value of the CODE_SIGN_ENTITLEMENTS build setting

I am using swift 4 with Xcode 9. My app run perfectly on the emulator. When I try to Archive for build .ipa file then only get this error. Is there any other way to share the app with a client?
Code Signing Error: The file "/Users/imran-mac/Desktop/Orlando Dev/njm-app-fiverr/NJM iOS/NJM/NO" could not be opened.
Verify the value of the CODE_SIGN_ENTITLEMENTS build setting for target "NJM" and build configuration "Release" is correct and that the file exists on disk.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'