Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld: Symbol not found: ___chkstk_darwin

Tags:

xcode

xcode11

After upgrading Xcode to Version 11.1 (11A1027), my iOS app(MyApp) crashes in Xcode at the start of its running with the following runtime error:

dyld: Symbol not found: ___chkstk_darwin Referenced from: /var/containers/Bundle/Application/xxxxxxxxxx/MyApp.app/MyApp Expected in: /usr/lib/libSystem.B.dylib

MacOS: Mojave 10.14.6 (18G103) Xcode: 11.1 (11A1027) Target Device: iPhone 6 Plus Target Device iOS: 12.4.2

It does not have any issues in Xcode 10.3. Any helps, comments will be appreciated. Thanks in advance.

like image 981
s4mt6 Avatar asked Nov 06 '22 13:11

s4mt6


1 Answers

I think I found the problem. I generate my Xcode projects with CMake and for some reason CMake is having a very hard time setting the Base SDK option on the project.

Bad Base SDK

If I manually set the Base SDK to iOS it seems to build and run just fine

Good Base SDK

like image 194
Honeybunch Avatar answered Dec 29 '22 13:12

Honeybunch