Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
- Subject: Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Mon, 23 Aug 2021 20:20:00 +0200
Hi Matt,
thanks a lot for your quick response. It clarifies a few things .. but see
below.
>
> That pop-up actually has two halves: first, a scheme, and second, a run
> destination.
>
> “Any Mac” and “My Mac” are run destinations, not schemes. But, as you’ve
> seen, “Any Mac” is a special “build-only” run destination that only supports
> building, not running.
>
> You should be able to pair your scheme with either of those run destinations.
> (If not, check the ARCHS (“Architectures”) setting of your targets.
> Normally, it should be set to $(ARCHS_STANDARD) (“Standard Architectures
> (Apple Silicon, Intel)”) — which is the SDK default anyway.)
That is the case in my Build Settings.
>
> If you wish to build your scheme with the “My Mac” run destination and make
> sure you’re building for both architectures, check out the ONLY_ACTIVE_ARCH
> (“Build Active Architecture Only”) build setting. When YES, Xcode will build
> only for the architecture of your run destination; when NO, it’ll build for
> all valid architectures.
This is set to "Yes" in the Debug case, and "No" in the Release case.
Do you have any other idea what might be causing this error message ?
Is there a way to compile & run a universal app from Xcode directly?
Or do I have to remember to switch to the "Any Mac" destination before I
distribute an app?
(I'm talking about macOS apps.)
Best regards, Gabriel
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden