I was able to run my Swift project on the emulator successfully, but wen I try to run it with the device I'm keep getting this error.
我能够成功地在模拟器上运行我的Swift项目,但是我尝试用设备运行它我一直得到这个错误。
This is my POD file
这是我的POD文件
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ‘9.0’
use_frameworks!
target :’safetyv1’ do
pod 'AWSS3'
end
I tried to do the following in both MyProject.xcodeproj and Pods.xcodeproj
我尝试在MyProject.xcodeproj和Pods.xcodeproj中执行以下操作
Unfortunately, I'm still getting both errors, I can't run it with my IPhone. I'm using Version 8.0 beta (8S128d) and deployment target set to 8.0 in both .xcodeproj files.
不幸的是,我仍然遇到两个错误,我无法用我的iPhone运行它。我在.xcodeproj文件中使用的是8.0版beta(8S128d)和部署目标设置为8.0。
Can someone please help me to fix this? I am stuck with this. Thanks a lot!
有人可以帮我解决这个问题吗?我坚持这个。非常感谢!
1 个解决方案
#1
1
Finally, I managed to fix it. I will post my answer here so it will help someone. Click on the Pods (blue icon) and expand the left navigation under Pods page. This will show you the installed libraries. Click on the targets one by one and assign a team.
最后,我设法解决了这个问题。我会在这里发布我的答案,这样可以帮助别人。单击Pods(蓝色图标)并展开Pods页面下的左侧导航。这将显示已安装的库。逐个点击目标并指定一个团队。
Now you can Clean the project and run it without errors.
现在您可以清理项目并运行它而不会出现错误。
This might not the best solution, this is a quick fix to run your project. More info Error when build project in new Xcode 8.0 beta
这可能不是最佳解决方案,这是运行项目的快速解决方案。更多信息在新的Xcode 8.0 beta中构建项目时出错