Carthage, Xcode 9. “xcodebuild timed out while trying to read *.xcodeproj” error

时光总嘲笑我的痴心妄想 提交于 2020-01-15 03:15:14

问题


Today I downloaded xCode 9 and started converting everything to Swift 3.2/4, so I can build and run my project.

As it was expected carthage complaint about some project that they could not be build, as they were not compatible with Swift 3.2/4. I had to find the versions that were compatible and build them.

I also had to use --no-use-binaries, as some frameworks are precompiled with previous versions of Swift.

I then got the following error:

xcodebuild timeout while trying to read AWSiOSSDKv2.xcodeproj

So far I was probably not getting this error, as i was downloading AWS framework precompiled. Now that carthage had to compile it locally, something was missing and was creating the timeout.


回答1:


To sort it out I did the following steps:

  • Open the timed out project in Xcode
  • Do not do anything
  • Run "Carthage build --platform iOS"

Everything compiled without any errors. It seams that once the project is opened in Xcode, Xcode is automatically adding something that is missing and the project compiles then.

This process has to be followed after every "carthage update", as the update will download a fresh xcode project.



来源:https://stackoverflow.com/questions/46072080/carthage-xcode-9-xcodebuild-timed-out-while-trying-to-read-xcodeproj-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!