-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipeline is failing in "Xcode@5"(Build and Sign) task for ios app #17114
Comments
Hi @charmipatalia. |
Hi @charmipatalia, could you please say do you have some not native project like Apache Cordova/React Native? This code means that some Input Data is incorrect in some way. Probably it happens because you switch xcode version without update the project. In case if it's some note native project reconfigure will help (examples for react and cordova apps). In case if you have native application, could you please check project via xcode(if you have this possibility), or get us some simple app examples in case if it possible |
Hey @DmitriiBobreshev , Thanks for looking into it. I have the native iOS application and if I try to deploy the app with Xcode than it is working fine but failing in this step in the pipeline. |
@charmipatalia, thanks for the answer, are you using Xcode 14 on your machine? Seems like Xcode on your machine modified some input data to be able to build the project. Do you use Cocoapod install before building in your pipeline?
Also, there is a list of all available versions for macos-11 and macos-12 |
Hello @DmitriiBobreshev , yeah I am using Xcode 14.0.1 in my machine and also using cocoapods install in the pipeline. So here you mean I need to mention the version of xcode in script? Pipeline is already using 14.0.1 by default. I am also wondering that if I use 'macOS-Latest' instead of 'macOS-12' than it is working fine(It will use XCode 13) but there is warning that you need to use macOS-12 soon. you have any idea on that? |
Hi @charmipatalia, thank's for your answer, I just thought that maybe your app wasn't built on Xcode 14 yet, so it's not migrated. And if it's possible let's exclude signature participation. Could you run your pipeline with just build for simulator, something like this:
|
I am seeing similar behavior on Xcode@5. I cannot reproduce this error using Xcode locally using the same
This was working fine about 4 days ago and just started to fail this week |
@jstoker, based on your logs it might be related to react-native itself, are you using code version 14.0.1 locally(the same as in pipeline)? |
Hi @jstoker, @charmipatalia, closing this issue due to inactivity and inability to reproduce the error, please feel free to reopen the problem, and provide some simple examples of the project if it's possible. |
Now I managed to fix the issue by using "default" as "signingOption" in Xcode@5 task,
|
Hi @charmipatalia @joxenford @DmitriiBobreshev I am also facing similar issue. |
Hello @namrata690 , will you please give more details like which signing option are you using? and also make sure all the provisioning profiles and certificates are up to date. |
Thanks @charmipatalia updating provisioning profiles worked. |
I'm having the damndest time getting this to work. It constantly says my App project file or workspace file is corrupt. If I run it locally, it works fine. But it keeps complaining about the project/workspace file is corrupt. I'm trying to build my ionic ios app using a different scheme/configuration. It just doesn't freaking work for some reason. I think the error is probably misleading but still....annoying Command line invocation: 2023-10-14T22:17:05.8369320Z 2023-10-14 22:17:05.836 xcodebuild[18383:93104] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled) |
Hey @Nathan187 , I suggest you to try these options,
Before doing any of this, please create a backup copy and then try |
thank you for the response @charmipatalia to your second bullet point, i'm not really sure what you mean or how to go about recreating the workspace file. i don't understand why i don't have these problems locally. the pipelines download the project (files) and I get this error in the xcode 5 step. this xcode project/workspace was created by the ionic build (capacitor command). i had to add the different configuration and scheme....works fine locally. looking at the project file in a text editor...the first line has this crap (// !$UTF8$!) for some reason....but it doesn't prevent other configuration/schemes (Release/App) from building. ugh....so annoying |
Hey @Nathan187 , to recreate workspace you need to delete .xcworkspace file and run 'pod install' command, it will recreate the workspace By any chance have you tried creating archive locally? Is it successful? |
ok, @charmipatalia , after a 2nd set of eyes...i saw that before performing the xcode@5 task, i was altering the info.plist file an the xcodeproj file using putil and sed. some variables i was using when doing this were commented out. so indeed my project file(s) were corrupt also, looking at another posting by a different user...his problem was very close to mine. he mentioned that it was a signing error which had me examining closer. i noticed that i did not copy all provisioning files over (i have provisioning files for different schemes). thank you for responding |
Type: Azure Pipeline
Pipeline is failing in "Xcode@5"(Build and Sign) task for ios app
Environment
Server - Azure Pipelines
Account name : c.patalia
Team project name : MobileApp-iOS
Build number : 1.43.0
Microsoft Hosted Agent
Agent specification: MacOS-12
Agent version: 2.211.1
Issue Description
I am using Azure pipelines to upload my iOS apps to TestFlight. It was working fine before but recently I changed the vmImage to "macOS-12" in .yml file with xCode 14.0.1 and after that pipeline is failing in "Xcode@5" task with error code 65.
In .yml file, in Xcode@5 task for "signingOption", I tried "auto" and"manual" both but issue is same in both cases. If I use "default" than it is failing with error code 70.
I also updated my certificates and profiles recently so it seems no error related to that and also build is successfully uploaded by Xcode but it is giving error in pipeline.
I am attaching the error logs for both the cases.
Here is task description in .yml file
task: Xcode@5
displayName: Build and Sign
inputs:
workingDirectory: '$(workingDirectory)'
xcWorkspacePath: '$(workingDirectory)/EvolutionWellness.xcworkspace'
actions: 'build'
sdk: 'iphoneos16.0'
scheme: '$(scheme)'
configuration: 'Release PROD'
packageApp: true
exportPath: '$(system.defaultworkingdirectory)'
signingOption: 'manual'
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
teamId: 'G7GD45FUCY'
args: '-verbose'
Error logs
Errorcode65.txt
Errorcode70.txt
The text was updated successfully, but these errors were encountered: