Realm-cocoa: Warn developers about the perils of misplaced build phases when building with Carthage

Created on 18 Feb 2016  路  3Comments  路  Source: realm/realm-cocoa

I wasted many hours trying to fix this error:
6d48a05d-0636-4b8d-a89f-715dbde36204

It turns out that I had placed the Run Script phase above my Embed Frameworks phase in my watchOS target. It's a silly mistake, but it's easy enough to make and potentially annoying to debug. (Applications... require an iOS Development Target of 3.0 or later really? )

I think it would be useful to warn developers about this. I suggest an addition like this to the docs (my contribution is the section in yellow):
c214fd6e-2af2-45bc-895b-5a486c8e1223

I would submit a PR, but I think the docs might not be on GitHub?

T-Doc

Most helpful comment

Tagging so devs can find this solution in the future.

  • ITMS-90081: This bundle is invalid. Applications built for more than one architecture require an iOS Deployment Target of 3.0 or later.
  • ITMS-90209: Invalid Segment Alignment. The app binary at __ does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.
  • ITMS-90125: The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker.

All 3 comments

Tagging so devs can find this solution in the future.

  • ITMS-90081: This bundle is invalid. Applications built for more than one architecture require an iOS Deployment Target of 3.0 or later.
  • ITMS-90209: Invalid Segment Alignment. The app binary at __ does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.
  • ITMS-90125: The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker.

Thanks for the suggestion, I updated our installation steps to emphasize this. It should be live in a few minutes.

Great! :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheHmmka picture TheHmmka  路  3Comments

BackWorld picture BackWorld  路  3Comments

charvoa picture charvoa  路  3Comments

dmorrow picture dmorrow  路  3Comments

dennisgec picture dennisgec  路  3Comments