Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFound an unexpected Mach-O header code: 1918975009 #52
Comments
carloslozano
added
the
bug
label
Nov 19, 2014
This comment has been minimized.
This comment has been minimized.
|
Fixed error by:
It seems iOS < 8 targets with embedded frameworks are automatically rejected by the validation of the application... so they can't be distributed. |
This comment has been minimized.
This comment has been minimized.
|
Targets < 8 no longer an issue |
carloslozano
closed this
Jan 16, 2015
This comment has been minimized.
This comment has been minimized.
ainulyaqin
commented
Apr 20, 2015
|
Hi Carlos, i have problem same with u, do you want to help me what the matter with this error ? 2015-04-20 10:15:02 +0000 [MT] Failed to generate distribution items with error: Error Domain=DVTMachOErrorDomain Code=1 "Found an unexpected Mach-O header code: 1918975009" UserInfo=0x7fe751d19ef0 {NSLocalizedDescription=Found an unexpected Mach-O header code: 1918975009, NSLocalizedRecoverySuggestion=} using xcode 6. iam using cocoapod 0.36.x builder in myproject, i set to ios deplyment target 8.0 too, in "Defines Module" set to "No" I clean and archieve still show error when, export and save for ad hoc. |
This comment has been minimized.
This comment has been minimized.
|
Are you trying to link against a static library from a Swift project? I'm currently working on Xcode 6.3.1 and Cocoapods 0.36.4 and I'm no longer encountering this issue. However, I do recall that removing "Library Includes Swift Code" from the build settings of the project and this seemed to overcome the problem. In any event, without looking at your specific use-case, it's a bit hard to determine the source of the problem. Is there any place where you have your code so that I can try to compile it with my current set-up and maybe find the offensive setting? Regards, C! |
carloslozano commentedNov 19, 2014
Linked frameworks including invalid binaries. Builds work on device and emulator but non iOS binaries are being included in the build, causing the following validation error:
2014-11-19 22:00:57 +0000 [MT] Failed to generate distribution items with error: Error Domain=DVTMachOErrorDomain Code=1 "Found an unexpected Mach-O header code: 1918975009" UserInfo=0x7fb840744350 {NSLocalizedDescription=Found an unexpected Mach-O header code: 1918975009, NSLocalizedRecoverySuggestion=}
This makes it impossible to validate the application for distribution.