Skip to content

Instantly share code, notes, and snippets.

@christianhelle
Last active November 26, 2019 08:52
Show Gist options
  • Save christianhelle/9267d7d686016710e90714eba238b92a to your computer and use it in GitHub Desktop.
Save christianhelle/9267d7d686016710e90714eba238b92a to your computer and use it in GitHub Desktop.
Workaround for building Xamarin.iOS after updating to XCode 11 for the error: PHImageManager.h(17,47): error GEA45E82A: expected identifier or '{'
#!/bin/bash
sudo sed -i -e 's/typedef NS_ENUM(NSInteger, UIImageOrientation);/typedef NS_ENUM(NSInteger, UIImageOrientation) {};/g' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment