Hello,
I’ve been following the course for Unity Mobile C# Developer Course.
On Lecture ’ Building To iOS’ I have not been able to get a successful build from Xcode to my iPhone.
For insight, I’ve been developing on Windows Unity for quite some time, but took interest in deploying/publishing an iPhone app. So following the same steps as in the course I’m using Unity on Windows. I’ve built the project with the same settings in the mentioned lecture and zipped the file. I used an external hard drive to transfer the zip file to my MacBook Laptop. From there I unzipped the file and opened the .xcodeproj in Xcode. I have my iPhone X plugged into my Mac laptop and shows up properly in Xcode. However when I hit Run/Build/PlayBtn in Xcode I am met with a build error:
'malformed archive TOC entry for _GC_new_proc, offset 313868672 is beyond end of file 285999104 file '/user/justinschmidt/Documents/iPhoneGames/BallLauncher/BallLauncher/Libraries/libiPhone-lib.a' clang: error: linker command failed with exit code 1 (use -v -to see invocation)
I’ve done quite a bit of ‘Googling’ to try to see if others have faced this issue and tried numerous steps but have not found a solution thus far.
I’m not sure if the file is possibly getting corrupted during the transfer from windows to mac?
I’ve followed the lecture step by step trying to keep versions as close as possible, although not much is mentioned in that regard during the IOS build lecture. Not sure if anyone has any thoughts or pointers on this, also if any other info is needed please let me know!
Thanks!
Tech Specs:
Unity 2020.2.4f1
Windows: 10 home ver 19041.1083
Mac: macOS Big Sur ver 11.4
iPhone X
XCode: 13.0 beta 3