Ask Your Question
2

Can Swift be configured in Xcode build settings like -ObjC?

asked 2021-10-08 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-12-27 20:00:00 +0000

lakamha gravatar image

Yes, Swift can be configured in Xcode build settings using the -ObjC flag. The -ObjC flag is used to include all Objective-C classes and categories from static libraries that are referenced in your project, even if they are not explicitly used in your code. This can be used in Swift projects that use Objective-C libraries or frameworks. To add the -ObjC flag in Xcode build settings, go to Build Settings and under Other Linker Flags, add "-ObjC" without quotes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-08 11:00:00 +0000

Seen: 16 times

Last updated: Dec 27 '21