真机运行项目报错:error: unable to read input file '/Users/sunland-imac/Library/MobileDevice/Provisioning Profiles/9ac98958-ea7f-40e7-8417-c7e25223dc42.mobileprovision': fopen(/Users/sunland-imac/Library/MobileDevice/Provisioning Profiles/9ac98958-ea7f-40e7-8417-c7e25223dc42.mobileprovision, rb): No such file or directory (2)
如下图:
字面理解是无法读取文件,可能是你手机上已经装了一个同PP文件的App。
解决方法为:删除手机上的App,再运行就好了!
通常发生这种情况的情景为:你在AppStore上下载了一个App,然后在Xcode上运行一个没有在本地运行过的代码报的错