1 回答

TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超7個贊
修改URL地址:打開項(xiàng)目目錄下的AppDelegate.m文件,
修改里面的URL,把localhost改為你的電腦的IP。在Mac系統(tǒng)下,你可以在系統(tǒng)設(shè)置/網(wǎng)絡(luò)里找到電腦的IP地址。
選擇設(shè)備:把手機(jī)插上數(shù)據(jù)線,連接到你的電腦,這時候就可以在調(diào)試設(shè)備里,看到你自己的設(shè)備。
點(diǎn)擊當(dāng)前選中的模擬設(shè)備即可展示所有設(shè)備,如下圖,然后選中你的真機(jī)
解決賬號問題:點(diǎn)擊“Build and Run”,卻出現(xiàn)如下提示:
Failed to code sign “2048”.
No
provisioning profiles with a valid signing identity (i.e. certificate
and private key pair) matching the bundle identifier “com.facebook.8048”
were found.
Xcode can attempt to fix this issue. This will reset
your code signing and provisioning settings to recommended values and
resolve issues with signing identities and provisioning profiles.
- 1 回答
- 0 關(guān)注
- 1181 瀏覽
添加回答
舉報(bào)