react native device debugging in xcode ios

1 modify the URL address: Open AppDelegate.m file in the project directory,
modify the inside of the URL, the localhost instead of your computer's IP. In the Mac system, you can find the IP address of the computer's system settings / network.

2 Select the device: the phone plug in the cable connected to your computer, this time will be commissioning the plant, you saw your own equipment.

3 Click on the currently selected analog device can display all devices, as shown below, and then select your real machine

4 to solve the problem account: Click "Build and Run", it states the following:
Failed to Sign code "2048."
No Provisioning Profiles A Signing the Identity! Valid with (IE Certificate and Private Key pair) matching at The bundle identifier The "com.facebook.8048" were found.
Xcode CAN FIX attempt to the this Issue. This by Will the RESET Signing your code and Provisioning Settings Recommended values and to Resolve aND DELINQUENCY with signing identities and provisioning profiles.

did not provide a valid certificate? xcode is very user-friendly, there is a direct button Fix Issue, click it, and then enter the account password prompt:

select the Choose

the ok, the problem seems to have been a fix, click run again, first see "Build Succeded", excitement, success !

Then too came out a prompt, this is what the hell!
Not Launch Could "2048"
Process failed The lanch: Security

Export Certificate: google a lot, later found because there is no import certificate, open Xcode-preferences-Accounts, you can see here have their own Apple ID, in fact, in front of "Fix issue" dry matter, is here to add his own personal account.

Select your account and click "Export Developer Accounts"

password credentials, write it down, a little later will be used.

ok, export succeeded

import the certificate: Find the exported file in the desktop

, double-click to open, prompt for a password, the password is in front of you enter the password

prompt import was successful, look it!

Click run, WTF again, how is this prompt

equipment trust certificate: After importing the original certificate, also need to click trust in the phone, open the Settings - General - description file and device management

Guess you like

Origin www.cnblogs.com/itgezhu/p/11071441.html