Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codesign Error with GiphyUISDK 2.1.6 #149

Closed
ekurutepe opened this issue Mar 22, 2021 · 6 comments
Closed

Codesign Error with GiphyUISDK 2.1.6 #149

ekurutepe opened this issue Mar 22, 2021 · 6 comments

Comments

@ekurutepe
Copy link

We import the SDK through SPM. Everything works as expected up to 2.1.5

Today I upgraded to 2.1.6 and it broke our release pipeline with the following error when codesigning before upload:

Failed to generate distribution items with error: Error Domain=DVTMachOErrorDomain Code=0 "Found an unexpected Mach-O header code: 0x72613c21" UserInfo={NSLocalizedDescription=Found an unexpected Mach-O header code: 0x72613c21, NSLocalizedRecoverySuggestion=}

Downgrading back to 2.1.5 fixes the issue.

@davidsiu
Copy link

Same here. It is failing on our M1 Mac Mini building in Rosetta mode.

@AndrewSB
Copy link

AndrewSB commented Apr 2, 2021

oh wow... I spent like 2 hours trying to figure this out, didn't realize it was Giphy. downgrading to 2.1.5 now

firebase/firebase-ios-sdk#6472 seems relevant.

@cgmaier
Copy link
Contributor

cgmaier commented Apr 6, 2021

Sorry about the delay on this - sorry to hear it seems to have led to some painful debugging : /

I'm now back in business however, and just pushed a version 2.1.7 which should hopefully resolve this issue. I think I accidentally touched the mach-o setting in the last release.

Please let me know if this gets things working again. thanks!

@jnwagstaff
Copy link

@cgmaier I have the same problem on 2.1.7, 2.1.5 is the latest version that is working for me

@cgmaier
Copy link
Contributor

cgmaier commented Apr 13, 2021

thanks for confirming @jnwagstaff and thanks for sharing that firebase issue link @AndrewSB

I've tried a number of things and am yet to be able to reproduce the error uploading the example app to App Store Connect. I'm using Xcode 12.4 on an M1 MacBook Air. Any ideas?

I can't seem to determine what may be different about release 2.1.5 - the build script and build settings don't appear to have been modified.

I created this branch to test SPM (rather than CocoaPods) in the swift Example app, where upload works for me. feel free to plug in your own signing credentials and a bundle id to the project in order to test archive / upload.

also wondering there is anything in Other Linker Flags which may be responsible?

thanks for helping to debug. hopefully we can resolve this issue soon!

cc @ekurutepe @davidsiu

djrluna pushed a commit that referenced this issue Apr 21, 2021
@cgmaier
Copy link
Contributor

cgmaier commented May 7, 2021

hey all,

we've determined this was an issue with Xcode, as noted in the 12.4 release:

Swift Packages

Known Issues

If you use a Swift package with binary dependencies in an app with extensions, the build system incorrectly embeds the binary dependencies alongside the extension in the PlugIns directory, causing validation of the archived app to fail. (69834549) (FB8761306)

Workaround: Add a scheme post-build action which removes the embedded binaries from the PlugIns directory after the build, e.g. rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app"/PlugIns/*.framework.

this appears to be fixed with Xcode 12.5:

The Swift Package Manager now builds package products and targets as dynamic frameworks automatically, if doing so avoids duplication of library code at runtime. (59931771) (FB7608638)

I released a new version of the GIPHY SDK 2.1.8 using Xcode 12.5 tools, in case this is also necessary.

cc @ALexanderLonsky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants