Skip to content
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

xcodeBuild failes to create simulator build #436

Open
aditisaini91 opened this issue Jun 25, 2020 · 4 comments
Open

xcodeBuild failes to create simulator build #436

aditisaini91 opened this issue Jun 25, 2020 · 4 comments

Comments

@aditisaini91
Copy link

Build fails with following log :

:xcodebuild FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':xcodebuild'.

Command failed to run (exit code 70): '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme M -workspace M.xcworkspace -configuration Debug CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO ARCHS=i386 PRODUCT_NAME=OR IH -derivedDataPath /Users/h231412/Documents/ios-client-2_6/M/build/OR IH/derivedData DSTROOT=/Users/h231412/Documents/ios-client-2_6/M/build/OR IH/dst OBJROOT=/Users/h231412/Documents/ios-client-2_6/M/build/obj SYMROOT=/Users/h231412/Documents/ios-client-2_6/M/build/OR IH/sym SHARED_PRECOMPS_DIR=/Users/h231412/Documents/ios-client-2_6/M/build/shared -destination platform=iOS Simulator,id=1A08F3D8-BA46-4322-98E3-36E3B29C1F83'
Tail of output:
{ platform:iOS Simulator, id:035A2CA1-B1B1-4D7A-9A07-20087B48E096, OS:13.2.2, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:1839BB1C-CE2E-4CA8-9840-BDACC19C13B2, OS:13.5, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:D7636024-CFB6-43FE-AB38-CB2B1CAFA9A8, OS:10.3.1, name:iPhone SE }
{ platform:iOS Simulator, id:5BB8EE3D-C944-4B28-B7A5-2D337BBF1A4F, OS:11.0.1, name:iPhone SE }
{ platform:iOS Simulator, id:632E4A36-6459-4029-9192-CC1703ACE31F, OS:11.4, name:iPhone SE }
{ platform:iOS Simulator, id:09A5B2F5-CDF9-4DB4-BD22-BFAB408A5B5B, OS:12.4, name:iPhone SE }
{ platform:iOS Simulator, id:D3D1FD8D-F400-4288-A3B9-0E0A73760395, OS:13.5, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:1FFDBBD5-0033-4F28-A9B5-F03FB4C07F50, OS:11.0.1, name:iPhone X }
{ platform:iOS Simulator, id:F27C15B7-A291-42DC-96FC-47D269D4227A, OS:11.4, name:iPhone X }
{ platform:iOS Simulator, id:1AD35486-AE1A-443E-AAE4-369F03C4090C, OS:12.4, name:iPhone X }
{ platform:iOS Simulator, id:AEA3043E-6413-4E24-B4C3-6C75047DCD16, OS:12.4, name:iPhone Xs }
{ platform:iOS Simulator, id:C4B19EE4-9D8A-4BA3-84D5-4D5D2503C0F9, OS:13.0, name:iPhone Xs }
{ platform:iOS Simulator, id:6763FDD0-DD02-4EDB-AF70-8162EA176901, OS:12.4, name:iPhone Xs Max }
{ platform:iOS Simulator, id:BB55A876-BCE3-4185-B101-FF235EE90C7A, OS:13.0, name:iPhone Xs Max }
{ platform:iOS Simulator, id:CA2AA199-6FD4-47EA-A81C-86A4E7B3C020, OS:12.4, name:iPhone Xʀ }
{ platform:iOS Simulator, id:704CCE06-977E-40B3-A9F0-6243D6FC21B5, OS:13.0, name:iPhone Xʀ }

    Ineligible destinations for the "M" scheme:
            { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
            { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }

Build.gradle looks like :

xcodebuild {
type = 'iOS'
simulator = true
arch = ['i386' ]
additionalParameters = ['PRODUCT_NAME=' + m.productName ]

		signing {
			identity = m.signingIdentity
			certificateURI = m.signingCertificateURI
			certificatePassword = m.signingPassword
			mobileProvisionURI = m.signingProvisionProfileURI
		}
	}

Thanks in advance.

@renep
Copy link
Contributor

renep commented Jun 29, 2020

Try to remove the arch parameter.

@aditisaini91
Copy link
Author

I tried removing arch parameter. I still get the same issue.
But when specifically provide destination = ['iPad Pro (11-inch)', 'iPhone 8' ], the build is successful. Though I want the build to be able to run on any simulator.
I have tried with gradle version 3.0, and 5.0. About a year ago this used to work fine.
Is there anything else I should try.?

thank you

@renep
Copy link
Contributor

renep commented Jul 3, 2020

On reason could be that you have in your destination iPad Pro (11-inch) but with the latest Xcode there is now iPad Pro (11-inch) (1st generation) and iPad Pro (11-inch) (2st generation)
The latest version of this plugin should fix this issue and should take the first simulator where the prefix matches.

@aditisaini91
Copy link
Author

aditisaini91 commented Jul 3, 2020

You misunderstood me.

My build works now only when I provide destination = ['iPad Pro (11-inch)', 'iPhone 8' ]. Without this it gives the above mentioned error.

Xcode version 11.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants