-
Notifications
You must be signed in to change notification settings - Fork 34
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
Unity iOS xcode 'Amplitude\Amplitude.h' file not found #118
Comments
Hi @Brian-McElroy, thanks for choosing Amplitude. Would you mind sharing how you install the SDK? In recent versions, we updated to use the DependencyManager to resolve the iOS dependency. There are tags including the DependencyManager or not. |
@qingzhuozhen yeah I updated my original comment saying how I installed the smaller unitypackage on a blank project.. I am now trying the bigger unitypackage with the dependency manager thing, and clicking on install cocoapods option before building.. I am having more errors though. " |
I am also getting the same bitcode error seen above. Sounds like it requires amplitude to rebuild with ENABLE_BITCODE. Annoyingly without this, I'm having to disable bitcode for my whole project. Can this be looked into? There is an old issue on the ios SDK which sounds like it shares some similarities - amplitude/Amplitude-iOS#384 |
I created an empty Unity 2021.3.17f1 project, added Amplitude SDK, and create an Xcode project by building for iOS in the Unity Editor. Trying to Archive, using Xcode 14.3, gives me that exact error. Is there any workaround to create an iOS build with the latest Unity's Amplitude SDK? |
I found the solution. In Unity is necessary to choose from the menu: On the settings is necessary to change the "Cocoapods Integration" from In Xcode is necessary to choose the "Project", then "Build Settings" and in the "Build Options" is necessary to set "Enable Bitcode" to "No" Then "Archive" can be completed successfully, at least in my case 😅 |
I've managed to solve this issue without turning off bitcode in Xcode project In Unity:
|
I added Amplitude to an existing Unity project, on Android it was fine, but on iOS when I try to build I get this error ... "'Amplitude\Amplitude.h' file not found"
Project uses Unity 2021.3.9f1 and Ar foundation
I get the same issue with a brand new Unity 2021.3.9f1 project, with nothing in it but the Amplitude SDK. I used the 2.6.0 amplitude-unity.unitypackage file from here https://github.com/amplitude/unity-plugin/releases
The text was updated successfully, but these errors were encountered: