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

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.

Related

Codemagic builed failed on flutter app on windows with platform error?

I'm trying to build my flutter app with codemagic for ios but it fails building with this error:
[!] Automatically assigning platform iOS with version 9.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
Error running pod install
Build failed :| Failed to build for iOS
exactly like on this thread:
Error while building flutter app for ios on codemagic - Automatically assigning platform `iOS` with version `8.0` on target `Runner`
but couldn't understand the solution.
I'm using windows so have no pod file as well.
I also looked inside the suggested link but it links to the cocoapod website which I don't have on windows.
Any suggestions would help!

Flutter; Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1eb0e27a0) and ?? (0x1162f02b8)

Running pod install... 1.6s
Running Xcode build...
Xcode build done. 7.6s
Failed to build iOS app
Error output from Xcode build:
↳
objc[9381]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1eb0e27a0) and ?? (0x1162f02b8). One of the two will be used. Which one is undefined.
objc[9381]: Class AMSupportURLSession is implemented in both ?? (0x1eb0e27f0) and ?? (0x1162f0308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
I have tried deleting the bin/cache folder as well, and it has not worked. Running on an M1 Mac.
In my case I solved the problem by removing a Firebase library I was using for the storage on the web.
It was conflicting with the iOS version for some reason.
I solved this using the following method:
Backup existing ios folder in your project
Create a new flutter app in you home directory.
flutter create my_app
Copy the ios folder from the newly created app into your existing project.
navigate to the project folder and run the app using flutter run
cd ~/myproject
flutter run
I am not sure why it worked, but it did. My guess is that I fouled up a config file or plist file somewhere.
I had the same problem. You may try the below:
Go to the project folder:
$ rm ios/Flutter/Flutter.podspec
$ flutter clean
Works for me.
The solution which worked for me. Sorry I didn't post earlier.
Go to your flutter project
Open your runner.xcodeproj folder
open the contents.xcworkspace file and you will have an option to open ios module on code
Run your code by pressing the play button
The build will fail so go to the error log. And the real error will be there. The AMSupportURLConnectionDelegate isn't the real reason your build is failing.
This error occurs because of the Xcode beta version.
If you are using Firebase Auth you may face this kind of issue, Change the X-code version as stable
change like this in your Podfile.
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
end
end
end
Open your iOS folder in your X-code and find the file like this FIRAUTH DEFAULT DELEGATE
#import <TargetConditionals.h>
#if !TARGET_OS_OSX && !TARGET_OS_WATCH
then close the Xcode and try flutter run
If it is not working you have to delete your pod files and then again do flutter run
For me this was firebase_crashlytics: ^0.2.3+1 causing the issue. Commenting out this allowed the build on simulator to run.

unable to resolve product type 'com.apple.product-type.application.watchapp2' for platform 'iphoneos' (in target 'watchVersion' from

i want to create flutter app for apple watch after Enabling bitcode in Xcode and Adding an Apple Watch target
but app is not running ,
get me this error
error: unable to resolve product type 'com.apple.product-type.watchkit2-extension' for platform 'iphoneos' (in target 'watchVersion Extension' from project 'Runner')
You need to change your project's Xcode Build Settings for your Apple Watch app target (extension also) Base SDK and Supported platform to watchOS. Make sure that the Runner app stays on iOS.
Faced a similar problem with Azure pipeline, the solution was to update sdk which was being passed as sdk:'iphoneos'.
Just passed empty string sdk: ''

producing flutter (Xcode) testflight archive fails with multiple commands produce

need to produce an archive so we can upload to TestFlight so followed instructions in https://flutter.dev/docs/deployment/ios . my flutter runs on both real iPhone and simulator with no problem. so I produce a release version as required then open the resultant Xcode project (runner). immediately see the error
:-1: Multiple commands produce '/Users/jmcfet/Library/Developer/Xcode/DerivedData/Runner-cwxykfeiijpirmgbtrkzktdrahbt/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/Flutter.framework':
1) Target 'Runner' has copy command from '/Users/jmcfet/AndroidStudioProjects/sis/ios/Flutter/Flutter.framework' to '/Users/jmcfet/Library/Developer/Xcode/DerivedData/Runner-cwxykfeiijpirmgbtrkzktdrahbt/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/Flutter.framework'
2) That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”
now this does not happen when I do the same against the "Flutter Hello world" app so wondering what is messed up in my Flutter app
no luck :
johns-MacBook-Air:ios jmcfet$ pod install
Analyzing dependencies
Fetching podspec for Flutter from .symlinks/flutter/ios
Fetching podspec for video_player from .symlinks/plugins/video_player/ios
Downloading dependencies
Using Flutter (1.0.0)
Using video_player (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.
[!] Automatically assigning platform ios with version 8.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner to Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig or include the Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig in your build configuration (Flutter/Release.xcconfig).
not an IOS expert but looks like the install was not successful. little confused as the Xcode project was generated by Flutter so why is Flutter generating a bad config file. if so looks like a bug to me

Playscape SDK 1.6 and Unity 4.5.5 show error when builds two file: APK and OBB

It shows error 'An error occured while applying post-build logic: Object reference not set to an instance of an object' when it builds two-file android build: APK + OBB.
Playscape's ApkCreator try to extract config file 'assets/playscape/PlayscapeConfig.xml' from APK. But config is inside .OBB file.
How to fix it?
We're currently do not support APK expansion files (for applications that are bigger than 50MB). We expect to support this functionality in a future version. Can you contact me directly so can discuss your game specifically. sharonh#playscape.com
Thanks,
Sharon