-
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
Can't build for iOS: building for iOS, but linking in dylib file built for Mac Catalyst #487
Comments
@CyrilGC Thanks for reporting. The error notes that I am not sure how that could have been used, however there are few things you can check for.
If the above doesn't help we will need some more details:
|
@jkasten2 Thanks for the response. I needed to produce a build last week and went back to the older version of the plugin. I encountered the same error and was only able to get rid of it after cleaning my repo with I confirm that I deleted the Asset/OneSignal folder. I always clean up before building (it happens with the first build anyway, after the Xcode project is generated by Unity). I also confirm I'm opening the workspace and not the project. Opening the project only would result in a different error which has been reported by someone else in a different ticket. We're using other plugins. I'm not sure if I can list them all here. One that we are using that could be relevant is the Unity Mobile Notification plugin. |
@jkasten2 Good news, I was able to fix the issue. The pods were what was causing the issue.
I was then able to build the Xcode project. But after deleting the Xcode folder, and regenerating from Unity, there was no workspace generated anymore and I was getting the same error as here: #468 I then uninstall cocoapods: I'm not very familiar with Xcode and Cocoapods so I'm not sure what steps are really necessary in the end. |
@CyrilGC Good to hear you got it working! Hard to say what was the root cause was in your case. However the commands you listed above would ensure you have a clean Cocoapods setup, as well as Xcode's |
Description:
I just updated the SDK from 2.14.6 to 3.0.1. Everything is fine on Android but on iOS, I get the following error when the Xcode project gets compiled:
building for iOS, but linking in dylib file (/Users/cyril/Library/Developer/Xcode/DerivedData/Unity-iPhone-braqpnxgmoetzydutycizcruiwpn/Build/Products/Debug-iphoneos/OneSignal.framework/OneSignal) built for Mac Catalyst, file '/Users/cyril/Library/Developer/Xcode/DerivedData/Unity-iPhone-braqpnxgmoetzydutycizcruiwpn/Build/Products/Debug-iphoneos/OneSignal.framework/OneSignal' for architecture arm64
This is similar to the issue described here: OneSignal/react-native-onesignal#1234
I cleaned my cache, deleted everything in the derived data folder and I still get the same error.
Environment
Unity version: 2020.3.26f1
One Signal SDK: 3.0.1
Steps to Reproduce Issue:
The text was updated successfully, but these errors were encountered: