The Run Destination My Mac Is Not Valid For Running The Scheme

Important:This material is covered in App Distribution Guide.

  1. The Run Destination My Mac Is Not Valid For Running The Scheme 2020
  2. The Run Destination My Mac Is Not Valid For Running The Scheme

Although you can test an app you’re developing in iOS Simulator, you can’t effectively test all aspects of your app without testing it on a device. To run your app on an iOS device during development, it must be connected to your Mac, enabled for development, and recognized by Apple. You do this by providing some information about the app, yourself, and the device. You create a type of signing certificate, called a development certificate, to identify yourself. All of this information is incorporated into a development provisioning profile that is installed and that allows the app to launch on the device.

Connect the device to your Mac, and choose the device in the run destination menu. For macOS versions of an iPad app, choose My Mac (the Mac running Xcode) as the device. If you choose a real device, add your Apple ID in Accounts preferences and assign the project to a team on the Signing & Capabilities pane of the project editor. 推荐:The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo' 问题:The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo'. The scheme 'MultiTouchDemo' contains no buildables tha. たまに iOS 向けのプロジェクトを Xcode 4 で開いたときに、左上の scheme 選択欄に My Mac 64bit と表示されてしまって iPhone シミュレータや実機でビルドが出来なくなることがあるようです。 対処法は.

The easiest way to provision your devices for development is with Xcode. You can sign in to your account and view all the provisioning profiles and signing certificates for your account. Xcode provides a default iOS Team Provisioning Profile and iOS Wildcard App ID for you. Xcode automatically updates this provisioning profile when new development certificates or device IDs are added to your account. The iOS Team Provisioning Profile uses the iOS Wildcard App ID that matches all apps developed by you or your team. The iOS Team Provisioning Profile allows you to begin running the app on a device immediately. However, if you use iCloud storage, push notifications, In-App Purchase, or Game Center, you need to create a specialized provisioning profile, as described in App Distribution Guide.

To run your app on a device, you will perform these tasks in the tutorial steps that follow:

  1. Request a development certificate.

  2. Add your device to the portal.

  3. Code sign your app.

  4. Launch your app on the device.

Request a Development Certificate

When you refresh the provisioning profiles, Xcode creates your signing certificates. Xcode creates both development and distribution certificates on your behalf and automatically adds them to your keychain. A distribution certificate is needed later for testing and submitting your app to the App Store.

  1. Click Devices.

  2. In the Library section, select Provisioning Profiles.

  3. Click the Refresh button at the bottom of the window.

  4. Enter your user name and password and click Log in.

    After you sign in to your account, a prompt appears, asking whether Xcode should request your development certificate.

  5. The development certificate is added to your keychain and later added to the iOS Team Provisioning Profile.

    More prompts may appear, asking whether Xcode should request other types of certificates. Click the Submit Request button for each prompt that appears.

  6. If a prompt appears at the end of the refresh process, asking whether you want to export your developer profile, click Export.

    The private keys for your certificates are stored in your keychain, and the public keys are stored in the portal. Therefore, you can’t move to another Mac or user account and refresh your provisioning profiles and certificates in Xcode to restore your certificates. Instead, you should back up your certificates after you create them and then import them from another Mac if you are missing private keys in your keychain.

  7. Because the file contains your digital identity, which can be used to sign apps in your name, it is encrypted and password protected. (You will need the password later to import your digital assets to another system.)

The run destination my mac is not valid for running the scheme using

Provision Your Device

The first time you add a device, Xcode creates the iOS Team Provisioning Profile and automatically installs it on the device. You simply connect your iOS device to your Mac and click the “Use for Development” button to add the device to the iOS Team Provisioning Profile.

  1. Open the Devices organizer (Window > Organizer > Devices).

  2. Click the “Use for Development” button.

    The first time you add a device ID to your account, Xcode creates the iOS Team Provisioning Profile using the iOS Wildcard App ID, your development certificate, and the device ID. The iOS Team Provisioning Profile is also installed on your iOS device.

    If the device was used for development in the past, the “Use for Development” button may not appear. If this happens, click “Add to Portal” at the bottom of the screen instead.

The run destination my mac is not valid for running the scheme xcode 11Destination

Code Sign Your App

When you build the app, you code sign it with the signing certificate contained in the provisioning profile you want to use. A menu item appears (in the Code Signing Identity Build setting pop-up menu) for each provisioning profile your development certificate belongs to. The default setting is iPhone Developer in the Automatic Profile Selector menu, which matches your iOS Team Provisioning Profile developer certificate. If you previously changed this build setting or created other provisioning profiles that use your developer certificate, set the Code Signing Identity to your developer certificate contained in the iOS Team Provisioning Profile.

Run
To set the code signing identity to your iOS Team Provisioning Profile development certificate
  1. Click Build Settings.

  2. Type Code Signing in the search field in the Build Settings pane of the project editor.

  3. From the Code Signing Identity pop-up menu, in the iOS Team Provisioning Profile section, choose the certificate that begins with “iPhone Developer:” followed by your name.

Launch Your App on the Device

After you provision your device for development, you can tell Xcode to launch the app on the device. You do this by changing the run destination setting in the Scheme pop-up menu before you build the app.

  1. Choose Product > Scheme > Edit Scheme to open the scheme editor.

  2. Select your device from the Destination pop-up menu.

    When you connect an iOS device with a valid provisioning profile into your Mac, its name appears as an option in the destination Scheme pop-up menu.

  3. Click the Run button.

    When the app is built, it is signed. If a prompt appears asking whether code sign can sign the app using a key in your keychain, click Allow or Always Allow.

Recap

In this chapter you learned how to request a development certificate using Xcode, and how to provision your device for development so that Xcode could launch the app on the device you’ve chosen. You also code signed your app with the signing certificate contained in the provisioning profile.



Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use Privacy Policy Updated: 2013-09-18

Scheme

2020腾讯云双十一活动,全年最低!!!(领取3500元代金券),
地址:https://cloud.tencent.com/act/cps/redirect?redirect=1073

2020阿里云最低价产品入口,含代金券(新老用户有优惠),
地址:https://www.aliyun.com/minisite/goods

The Run Destination My Mac Is Not Valid For Running The Scheme 2020

推荐:【iOS】The run destination My Mac 64-bit is not valid for Running the scheme '*'

感谢浏览 换了imac,Xcode换到了5.0 遇到了一些问题,之前的代码很多都不能运行,提示如标题所示的错误,在国外论坛上给出了解决办法,如下: How to changethe S

ran in to this issue recently and i solved it by changing the value of the executable from 'None' to 'AppName.app' on xcode.

You should change:

推荐:解决问题:The run destination My Mac 64-bit is not valid for Running the scheme

转自:http://www.cocoachina.com/bbs/read.phptid=78319 How to change the SDK: 1) Click on the project icon in the left hand panel. 2) In the right

Edit scheme -> Run AppName.app -> Info tab -> Executable -> None

to:

Edit scheme -> Run AppName.app -> Info tab -> Executable -> AppName.app

推荐:The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo'

问题:The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo'. The scheme 'MultiTouchDemo' contains no buildables tha

The Run Destination My Mac Is Not Valid For Running The Scheme

ran in to this issue recently and i solved it by changing the value of the executable from 'None' to 'AppName.app' on xcode. You should change: Edit scheme -> Run AppName.app -> I
  • 1Mac 可设置环境变量的位置、查看和添加PATH环境变量
  • 2Mac OS X上使用Wireshark抓包
  • 3如何查看mac系统是32位还是64位的操作系统
  • 4在MAC上查找和设置$JAVA_HOME
  • 5给mac终端iTerm2配色
  • 1微信公众号文章采集,并发布到WordPress
  • 2【iOS】The run destination My Mac 64-bit is not valid for Running the scheme '*'
  • 3The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo'
  • 4解决问题:The run destination My Mac 64-bit is not valid for Running the scheme
  • 5编译错误“The run destination My Mac 64-bit is not valid for Running the scheme '***',解决办法

最新文章

  • 1The VMware Authorization Service is not running.
  • 2mac 使用Karabiner配置键盘映射(2)-核心标签的解读
  • 3mac 安装anaconda 并配置mirror
  • 4了解Java线程的start方法如何回调run方法
  • 5mac 使用virtualbox 安装 centos
  • 6一定能成功的Android NDK环境配置教程