Fastlane build failed while releasing to Apple Store [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I use Fastlane to push a build to the App Store. I released the app almost 8 times using this. But this I updated my Xcode10.1 to Xcode11. Somehow I was facing some issue to building. So I rollback to Xcode10.1. Now when I ran my scripts its build successfully but failed with below error.
Successfully uploaded set of metadata to App Store Connect
Successfully uploaded screenshots to App Store Connect Uploading
binary to App Store Connect [14:51:03]: Going to upload updated app to
App Store Connect [14:51:03]: This might take a few minutes. Please
don't interrupt the script.
then after this:
[Transporter Error Output]: Could not start delivery: all transports
failed diagnostics [14:56:09]: Transporter transfer failed.
[14:56:09]: [14:56:09]: Could not start delivery: all transports
failed diagnostics [14:56:09]: [iTMSTransporter] at
com.signiant.interactivetransfer.engine.TransferEngine.access$1200(TransferEngine.java:149)
[14:56:09]: [iTMSTransporter] at
com.signiant.interactivetransfer.engine.TransferEngine$8.run(TransferEngine.java:4060)
[14:56:09]: [iTMSTransporter]
[14:56:09]: [iTMSTransporter] [2019-10-09 14:56:09 IST] DEBUG: Received failed transfer notification; aborting
[14:56:09]: [iTMSTransporter] [2019-10-09 14:56:09 IST] INFO: The Signiant transfer engine's status is DISCONNECTED
[14:56:09]: [iTMSTransporter] [2019-10-09 14:56:09 IST] ERROR:
Could not start delivery: all transports failed diagnostics
[14:56:09]: [iTMSTransporter]
[14:56:09]: [iTMSTransporter]
[14:56:09]: [iTMSTransporter]
[14:56:09]: [iTMSTransporter] Package Summary:
[14:56:09]: [iTMSTransporter]
[14:56:09]: [iTMSTransporter] 1 package(s) were not uploaded because
they had problems:
[14:56:09]: [iTMSTransporter] /tmp/1179206989.itmsp - Error Messages:
[14:56:09]: [iTMSTransporter] Could not start delivery: all
transports failed diagnostics
[14:56:09]: [iTMSTransporter] [2019-10-09 14:56:09 IST] DBG-X:
Returning 1
[14:56:09]: iTunes Transporter output above ^ [14:56:09]: Could not
start delivery: all transports failed diagnostics Return status of
iTunes Transporter was 1: Could not start delivery: all transports
failed diagnostics The call to the iTMSTransporter completed with a
non-zero exit status: 1. This indicates a failure.

I had the same issue on XCode 11. After some retries of archiving and uploading, it has been working for me as expected till now.

As it was some server related issue. re-ran the scripts for release twice and it worked.
iTunes Transporter successfully finished its job

Related

Testflight upload fails with an error in the azure pipeline

I am trying to upload an ipa generated from a pipeline task to testflight, but I keep getting this error,
2022-09-08T19:15:04.3027660Z [19:15:04]: Transporter transfer failed.
2022-09-08T19:15:04.3035460Z [19:15:04]:
2022-09-08T19:15:04.3038030Z [19:15:04]: iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.3148450Z An exception has occurred: null
2022-09-08T19:15:04.5690040Z [19:15:04]: [iTMSTransporter] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-09-08T19:15:04.5692520Z
2022-09-08T19:15:04.5693940Z [19:15:04]: [iTMSTransporter] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2022-09-08T19:15:04.5694840Z
2022-09-08T19:15:04.5695950Z [19:15:04]: [iTMSTransporter] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-09-08T19:15:04.5696630Z
2022-09-08T19:15:04.5697520Z [19:15:04]: [iTMSTransporter] at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-09-08T19:15:04.5698140Z
2022-09-08T19:15:04.5699110Z [19:15:04]: [iTMSTransporter] at com.apple.transporter.launcher.Application.start(Application.java:450)
2022-09-08T19:15:04.5699870Z
2022-09-08T19:15:04.5701020Z [19:15:04]: [iTMSTransporter] at com.apple.transporter.launcher.Application.main(Application.java:947)
2022-09-08T19:15:04.5701970Z
2022-09-08T19:15:04.5703840Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5704400Z
2022-09-08T19:15:04.5705320Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5705520Z
2022-09-08T19:15:04.5706710Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5706970Z
2022-09-08T19:15:04.5707850Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5708140Z
2022-09-08T19:15:04.5708820Z [19:15:04]: [iTMSTransporter] Error Summary
2022-09-08T19:15:04.5709040Z
2022-09-08T19:15:04.5709430Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5709600Z
2022-09-08T19:15:04.5710090Z [19:15:04]: [iTMSTransporter] iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.5710380Z
2022-09-08T19:15:04.5710820Z [19:15:04]: [iTMSTransporter] An exception has occurred: null
2022-09-08T19:15:04.5711280Z
2022-09-08T19:15:04.5713560Z [19:15:04]: [iTMSTransporter] [2022-09-08 19:15:04 UTC] <main> DBG-X: Returning 1
2022-09-08T19:15:04.5713960Z
2022-09-08T19:15:04.5714350Z [19:15:04]: iTunes Transporter output above ^
2022-09-08T19:15:04.5714900Z [19:15:04]: iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.5715430Z An exception has occurred: null
2022-09-08T19:15:04.5716020Z Return status of iTunes Transporter was 1: iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.5717110Z \nAn exception has occurred: null
2022-09-08T19:15:04.5718220Z The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
2022-09-08T19:15:04.5918110Z
2022-09-08T19:15:04.5920580Z [!] Error uploading ipa file:
2022-09-08T19:15:04.5921290Z
2022-09-08T19:15:04.6299370Z ##[error]Error: The process '/usr/local/lib/ruby/gems/2.7.0/bin/fastlane' failed with exit code 1
2022-09-08T19:15:04.6329380Z ##[section]Finishing: Publish to the App Store TestFlight track
Any reason why I am getting this. I couldn't find an exact cause for this issue in other threads.
This issue was coming basically because I've configured multiple schemes but I haven't defined build numbers for some schemes. The error generated from the pipeline is pretty ambiguous.A more detailed answer on validating your ipa incase you got this type of a similar issue is posted here,
https://github.com/fastlane/fastlane/discussions/20636

Appium Not Running Xcode 12.3

I'm trying to use Appium version 1.19.1 to test an ipad app on a physical ipad device that I have built with Xcode 12.3. Previously this has worked as expected, but recently I have not been able to get Appium to run at all, and I suspect that Xcode 12.3 may be the issue based on what I have discovered.
When I try to run Appium from python this is the trace printed to my python console (device serial number/udid intentionally hidden):
File "/Users/opt/anaconda3/lib/python3.7/site-packages/appium/webdriver/webdriver.py", line 155, in __init__
proxy
File "/Users/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/Users/opt/anaconda3/lib/python3.7/site-packages/appium/webdriver/webdriver.py", line 225, in start_session
response = self.execute(RemoteCommand.NEW_SESSION, parameters)
File "/Users/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/Users/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
xcodebuild error message:
2021-01-06 17:04:24.366 xcodebuild[16217:213101] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos14.3-arm64.xctestrun” doesn’t exist." UserInfo={NSFilePath=/Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products/WebDriverAgentRunner_iphoneos14.3-arm64.xctestrun, NSUserStringVariant=Folder, NSUnderlyingError=0x7fb116ac6ad0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
** TEST BUILD FAILED **
2021-01-06 17:04:24.380 xcodebuild[16217:213102] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.01.06_17-04-22--0600.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-E1E91CAE-6813-4009-872F-D9B73C898BBD/WebDriverAgentRunner-0D722399-E7A6-4474-8791-593FA62358F6/Session-WebDriverAgentRunner-2021-01-06_170424-nMI8G0.log
2021-01-06 17:04:24.382 xcodebuild[16217:213028] [MT] IDETestOperationsObserverDebug: (DF79B2A2-04AF-4A59-87B7-DBB8279EC46E) Beginning test session WebDriverAgentRunner-DF79B2A2-04AF-4A59-87B7-DBB8279EC46E at 2021-01-06 17:04:24.381 with Xcode 12C33 on target 📱<DVTiOSDevice (0x7fb11a157e10), ****, iPad, 14.3 (18C66), ****> {
deviceSerialNumber: ****
identifier: ****
deviceClass: iPad
deviceName: ****
deviceIdentifier: ****
productVersion: 14.3
buildVersion: 18C66
deviceSoftwareVersion: 14.3 (18C66)
deviceArchitecture: arm64e
deviceTotalCapacity: 249024532480
deviceAvailableCapacity: 240144109568
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x7fb113d0a3d0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1,
2
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
hasWritableSystem: NO
isSupportedOS: YES
bootArgs: (null)
nextBootArgs: (null)
connected: YES
isWirelessEnabled: NO
connectionType: direct
hostname: (null)
bonjourServiceName: ****
activeProxiedDevice: (null)
} (14.3 (18C66))
2021-01-06 17:04:24.498 xcodebuild[16217:213028] [MT] IDETestOperationsObserverDebug: (****) Finished requesting crash reports. Continuing with testing.
*** If you believe this error represents a bug, please attach the result bundle at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.01.06_17-04-22--0600.xcresult
2021-01-06 17:04:24.514 xcodebuild[16217:213028] [MT] IDETestOperationsObserverDebug: 0.141 elapsed -- Testing started completed.
2021-01-06 17:04:24.514 xcodebuild[16217:213028] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2021-01-06 17:04:24.514 xcodebuild[16217:213028] [MT] IDETestOperationsObserverDebug: 0.141 sec, +0.141 sec -- end
Test session results, code coverage, and logs:
/Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.01.06_17-04-22--0600.xcresult
Testing failed:
Building for iOS, but the embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator.
Building for iOS, but the embedded framework 'YYCache.framework' was built for iOS + iOS Simulator.
Building for iOS, but the linked and embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator.
Building for iOS, but the linked and embedded framework 'YYCache.framework' was built for iOS + iOS Simulator.
WebDriverAgentRunner:
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.01.06_17-04-22--0600.xcresult. (Underlying Error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying Error: The operation couldn’t be completed. No such file or directory)))
** TEST EXECUTE FAILED **
Testing started. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
Through researching I came across this answer which linked to an apple developer forum post that leads me to believe the issue is with one of the frameworks that appium must be using that is not cooperating with Xcode 12.3.
I have also come across another suggestion that I tried but it did not fix my issue.
Also, this is what I'm seeing in Test-WebDriverAgentRunner-2021.01.06_17-04-19--0600.xcresult:
Assertions: System: Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2021.01.06_17-04-19--0600.xcresult. (Underlying Error: The file “WebDriverAgentRunner-Runner.app” couldn’t be opened because there is no such file. The file doesn’t exist. (Underlying Error: The operation couldn’t be completed. No such file or directory))
So is there anything else I can try at this point, or is this going to come down to a framework being used by appium needing to be updated? Any ideas or suggestions are definitely appreciated!
Turns out I had to follow the suggestion in this answer but on the WebDriverAgent Xcode project. Seems to have fixed it for me.
After the installation WDA on real device, worked for me on appium 1.20 such workaround:
$ cd ~/Library/Developer/Xcode/DerivedData
$ rm -rf WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp
$ mv WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp

iOS React Native App/ Build Succeeded but App not getting open in iOS device/ Simulator

iOS App is build successfully but App is not getting open in the Simulator or device.
Getting chmod error for the app path.
Error:
info ** BUILD SUCCEEDED **
info Installing <PATH TO APP>.app
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/surabhiagrawal/Library/Developer/CoreSimulator/Devices/7A54A41E-006C-4B29-B33A-BE956F715255/data/Bundle/Application/0A68FDA4-1D57-49BB-8377-7BA5AC9BBB46/<AppName> : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/surabhiagrawal/Library/Developer/CoreSimulator/Devices/7A54A41E-006C-4B29-B33A-BE956F715255/data/Bundle/Application/0A68FDA4-1D57-49BB-8377-7BA5AC9BBB46/<AppName>.app/<AppName> : No such file or directory
info Launching <Package Name>
com.goshopmatic.ShopmaticGoApp: -1
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "App Package name" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application <App_Path_Name> is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "App package name" is unknown to FrontBoard.
Application "App package name" is unknown to FrontBoard.
I fixed this by upgrading XCode.

Xcode executes successful build but is unable to launch on a physical device

I'm having this exact same issue:
https://github.com/facebook/react-native/issues/26152
This is on react-native 0.60.4
I'm able to have a successful build in Xcode, but I'm not able launch the app on a physical device.
This is the error that I'm given:
This is the readout from the console:
Details
Unable to launch com.news.arg
Domain: com.apple.platform.iphoneos
Code: -12
--
Request to launch com.news.arg failed.
Domain: com.apple.dt.deviceprocesscontrolservice
Code: 2
Failure Reason: The operation couldn’t be completed. Application "com.news.arg" is unknown to FrontBoard. : Failed to launch process with bundle identifier 'com.news.arg'.
--
The operation couldn’t be completed. Application "com.news.arg" is unknown to FrontBoard.
Domain: FBSOpenApplicationErrorDomain
Code: 4
Failure Reason: Application "com.news.arg" is unknown to FrontBoard.
User Info: {
BSErrorCodeDescription = NotFound;
}
--
Someone said on the react native reddit that expo posted a workaround on their twitter, but we were unable to find it when we went back and looked.

NativeScript iOS: release build failed

I want to update my app that is currently in AppStore. So I logged in into apple developer and downloaded the certificate from there (which is not expired yet).
What do I have now:
The certificate file $my_certificatename.cer
I still have a .p12-file in my project directory, which (I thought) should be the corresponding private key.
The following build.xcconfig:
CODE_SIGN_IDENTITY = $my_certificatename;
DEVELOPMENT_TEAM = $my_TeamID;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
updated version numbers in my Info.plist
Then I tried to run the following command:
tns build ios --release --for-device
Which does some stuff and then displays the following error:
** ARCHIVE SUCCEEDED **
2017-09-19 12:35:15.309 xcodebuild[3302:410544] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/nl/z3cdbrb17776dtxlltdqvc4h0000gn/T/HandyApp_2017-09-19_12-35-15.308.xcdistributionlogs'.
2017-09-19 12:35:17.352 xcodebuild[3302:410544] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f8964985730>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)
Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
** EXPORT FAILED **
Command xcodebuild failed with exit code 70
# build ios
Did I miss something in my configuration? Can anyone relate to this error?
My Xcode Signing Identities of my Account:

Resources