After many attempts, I finally got this job. A few caveats:
1 .. Compile the storyboard using
ibtool --compile MainMenu.storyboardc MainMenu.storyboard
Do not use
ibtool --compile MainMenu.nib MainMenu.storyboard
2. Place the compiled storyboardc file in the "Resources" folder of the playground, not the "Sources" folder
3 .. Specify the module name using the -module flag when compiling. Otherwise, your exits may cause a runtime error. For a playground book, the module name is Book_Sources. For your own playground, the name of the module is [Name of the playground] _ Sources. Note. I did not find anything in the Apple documentation, so it can be changed. The last command looks like this:
ibtool --compile MainMenu.storyboardc MainMenu.storyboard --module Book_Sources
source share