以下步骤, 前3步不能少
-
设定开发者账号,并且修改公司名为com.ymblender.项目名
-
Build Settings -> Signing 中所有都改为iOS Developer:
-
清除缓存(cmd+shift+k),重启Xcode,编译到真机
-
如果提示:No account for team "UBF8T346G9". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.
表示这个工程之前的teamID没有被切换。
1. 使用旧的TeamID(UBF8T346G9)搜索,并且把这个team改为自己的team
2. 清除缓存,重启Xcode(这次可以不需要重启),编译到真机器
热更新
搜索localhost,找到RCTWebSocketExecutor.m,把localhost改为自己的本机ip

网友评论