
Xcode -> In the Unity-phone - Build Settings -> Set - ALWAYS EMBED SWIFT STANDARD LIBRARIES: YES Xcode->The folder option -> Unity-IPhone-> under Projects select ‘UnityFramework’-> select ‘Build Phases’ then drag the ‘> Headers’ above the ‘> Compile Sources’Ĩ. Once the Pod Install is successful, double click the newly created ‘Unity-iPhone.xcworkspace’ in your project directory to open the workspace in Xcode.ħ. ] Terminal -> Type ‘sudo arch -x86_64 gem install ffi’ĥ. I don't understand the technical stuff about that, but that's what I discovered.Ĥ. Notes: Without the "use_frameworks!" added to the podfile, the xcworkspace will not let you see all of the Unity-iPhone project targets and schemes. Set all the Unity-iPhone target settings you need in the Unity-iPhone project that's in that workspace (such as adding frameworks, etc) Open the workspace by double-clicking it.Ħ. This will create a Unity-iPhone.xcworkspace file.ĥ. Open terminal at the path of the xcodeproj and podfile files.Ĥ. Open podfile in a text editor, and add use_frameworks! on a line right after "target". Build for iOS from Unity, which creates a Unity-iPhone.xcodeproj project file and a podfile.Ģ. At the terminal, type "sudo gem install cocoapods"ġ. I had to do things that I've never had to do in the past, so I'm not sure why it's so different now.Ġ. Update: After some fussing around, I was able to make this work.
