Closed frovera closed 3 years ago
Hi, you're welcome, I'm glad you used the script :)
I have checked your output, you get a Lipo error just like you said. You can check the Demo application for the Build Settings. Probably you have different settings somewhere. I was also getting Lipo errors too. For me, the solution was making a similar Build Setting with the working project.
I'm closing because this is not related to the Script file itself.
Best.
@gurhub I got the same error with Xcode 12, I guess Xcode 12 will build arm64 default for simulator, to support Mac silicone. How do I change the build setting to avoid this fatal error of lipo?
I found this article to remove arm64 for simulator: https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios
but I think we should resolve this problem on lipo stage. we'd better ignore the same arch when lipo merge.
First of all thanks for your tutorial. I have developed a library that must work both on simulators and on physical devices hence the need to create a fat framework.
I followed your istructions and build your script, unfortunately I get a fatal error at STEP 3 (... have the same architectures (arm64) and can't be in the same fat output file).
Details :
I replaced my library name with XXX.
Could you help me to solve it please? Thank you