-
Notifications
You must be signed in to change notification settings - Fork 61
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
Since ios 16 and latest Xcode, we can't compile #540
Comments
@joaquingrech Could you provide the following details:
Can you manually try turning "Enable Bitcode" to "No" on each target? (But please make a note before changing and report what they were on this github ticket) |
Any news on this? Since updating xCode and test device to iOS 16, same exact issue. |
We're seeing this too:
|
@jkasten2 Is there any way to force I use |
@jkasten2 Yes, I had to do some things to be able to compile and run correctly. But, disabling bitcode for Onesignal was not among them, it was not needed: |
I find the solution to resolve, modify the corresponding target build setting: set ENABLE_BITCODE to no for the target of [PostProcessBuild(46)]
public static void OnPostProcessBuild(BuildTarget target, string path)
{
if (target != BuildTarget.iOS) return;
string pbxProjectPath = PBXProject.GetPBXProjectPath(path);
PBXProject pbxProject = new PBXProject();
pbxProject.ReadFromFile(pbxProjectPath);
string targetGuid = pbxProject.TargetGuidByName("OneSignalNotificationServiceExtension");
if (!string.IsNullOrEmpty(targetGuid))
{
pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
pbxProject.WriteToFile(pbxProjectPath);
}
} take care to set PostProcessBuild to 46, check this thread: #509 and this https://github.com/googlesamples/unity-jar-resolver#appending-text-to-generated-podfile |
I've tried with Unity 2021 and 2022. Since the iOS 16 update with its corresponding Xcode, we can't compile any game.
We get this error on one signal
error build: '/Users/Joaquin/Library/Developer/Xcode/DerivedData/Unity-iPhone-ggifuxhndguhrzeqgdagmddoyqgm/Build/Products/ReleaseForRunning-iphoneos/Pods_OneSignalNotificationServiceExtension.framework/Pods_OneSignalNotificationServiceExtension(Pods-OneSignalNotificationServiceExtension-dummy.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/Joaquin/Library/Developer/Xcode/DerivedData/Unity-iPhone-ggifuxhndguhrzeqgdagmddoyqgm/Build/Products/ReleaseForRunning-iphoneos/Pods_OneSignalNotificationServiceExtension.framework/Pods_OneSignalNotificationServiceExtension' for architecture arm64
I've tried everything playing with enable bitcode but it doesn't compile.
any ideas?
The text was updated successfully, but these errors were encountered: