banner
李大仁博客

李大仁博客

天地虽大,但有一念向善,心存良知,虽凡夫俗子,皆可为圣贤。

[Xcode] Solution to objc_msgSend error during compilation

In the previously developed code, it was necessary to forcefully use some of Apple's private APIs, and the objc_msgSend method was used for invocation. Recently, when compiling with the latest version of Xcode, it consistently failed to pass. Later, I found a solution through Baidu and recorded it here. The modification method is also very simple: set the value of ENABLE_STRICT_OBJC_MSGSEND property to NO, and at least for now, no issues have been found with the program.

Reference links: http://www.ruanman.net/swift/learn/10443.html http://blog.sina.com.cn/s/blog_916e0cff0102vdnj.html

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.