• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"A build only device cannot be used to run this target" appearing with "Any Mac" scheme
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"A build only device cannot be used to run this target" appearing with "Any Mac" scheme


  • Subject: "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 19:48:19 +0200

I have a screensaver that compiles and runs fine when I use the active scheme
"My Mac".
However, when I switch to "Any Mac (Apple Silicon, Intel)", I get the error
message
   "A build only device cannot be used to run this target"
in Xcode immediately.

Maybe, the following info is related to this error message, maybe not:
The scheme is a bit uncommon, perhaps, because it has a Pre-action in the Run
tab
(which copies the .saver bundle into ~/Library/Screen Savers),
and in the Run section the Executable is set to "System Preferences.app".
(It works fine under the "My Mac" scheme.)

I can "Build For .. Running", and it does actually build it.
I can see /tmp/Saver.build/Release/.../{arm64,x86_64/Binary/..
I can also see the folder /tmp/Release/Saver.saver/Contents/MacOS/.
And it does contain an exec that is x86_64 and arm64.

But I'd prefer Xcode running the "Run" stuff in my scheme.

Any ideas? All kinds of suggestions and insights will be appreciated.

(Naturally , I have already googled.)

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

  • Follow-Ups:
    • Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
      • From: Matt Jacobson via Cocoa-dev <email@hidden>
  • Prev by Date: Re: Best way to grey out a status item's image?
  • Next by Date: Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
  • Previous by thread: Re: Best way to grey out a status item's image?
  • Next by thread: Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme
  • Index(es):
    • Date
    • Thread