Xcode: Build Failed, but no error messages

后端 未结 13 1440
[愿得一人]
[愿得一人] 2021-01-30 09:56

Using Xcode 4.5.1. Our project has been building fine for the last three months, but suddenly, when I try to build, it says \"Build failed\", but does not show any errors on the

相关标签:
13条回答
  • 2021-01-30 10:15

    Click the last icon in the top bar of the left most panel in your Xcode window to reveal the "secret" Archive build errors. I had permission issues which solved for me.

    0 讨论(0)
  • 2021-01-30 10:16

    Click the last icon in the top bar of the left most panel in your Xcode window to reveal the secret Archive build errors.

    It will likely be something related to code signing if you are able to build and run the app, but not Archive. Further googling of your error message should resolve that now that it has been revealed.

    0 讨论(0)
  • 2021-01-30 10:17

    If you changed the Build System to the new one, change back to the Standard. It solved for me.

    0 讨论(0)
  • 2021-01-30 10:17

    Faced same issue with xCode 8 the reason was that my Apple Id session expired and xCode was not able to renew it because of network connection problems once i signed in with my Apple id in preferences. I was able to build normally again

    0 讨论(0)
  • 2021-01-30 10:18

    I agree with Jason. You must did something wrong. It is Xcode's bug that it could not produce the error. Just move back on your path. Open screens you edited/opened last time. In My case ; was missing in one controller.

    0 讨论(0)
  • 2021-01-30 10:22

    Try next scenario:

    • Restart Xcode
    • check that .swift file with test functions contains
    import XCTest
    class <name>Tests: XCTestCase {
        //...
    }
    

    *If you have Cannot find viewcontroller in scope error -> remove classes from Test Target membership

    0 讨论(0)
提交回复
热议问题