swiftlyfalling / SQLiteLib

Easily build a custom SQLite static library for use in macOS and iOS frameworks and apps.
MIT License
64 stars 23 forks source link

How to clear architecture warnings in Xcode 11 #42

Closed mikemee closed 4 years ago

mikemee commented 4 years ago

After adding this (fantastic!) project to mine in Xcode 11, I received 3 compile warnings like this:

I was able to silence these after reading this Stack Overflow answer https://stackoverflow.com/a/52392083/19506 by changing my Valid Architectures setting in this project to $(ARCHS_STANDARD) in Build Settings.

This resulted in the following diff:

Screen Shot 2019-11-02 at 10 14 01 am

As not everyone will be using Xcode 11, I'm not suggesting this should be changed in the project file, but I thought it worth logging this issue in case others have the same problem and wish to clear the warnings.

swiftlyfalling commented 4 years ago

Thank you for the detailed report! We'll switch to using $(ARCHS_STANDARD) going forward - probably should have been this way all along.