Skip to content

Xcode 27 and iOS SDK 27: Debugging iOS Xojo apps

From time to time Apple’s updates cause things that used to work to suddenly stop working. That is exactly what happens with the combination of macOS Golden Gate, Xcode 27 and iOS SDK 27 (all release versions). With this setup, it is not possible to debug Xojo iOS projects on any of the iOS 27.0 Simulators, whether you are using the Simulator app or the new DeviceHub. Continue reading to find how to work around this.

During internal testing for Xojo 2026r3, we identified this issue and have already fixed it. The workaround below is for users who have the previously described setup but are are running Xojo 2026r2.1 or earlier releases and need to test their iOS projects under any of the iOS 27 Simulators. Note that this issue doesn’t happen if you debug your iOS projects on a physical device running iOS 27.0.

The workaround

Until Xojo 2026r3 is released, the workaround is simple: just add a new Build Script to your iOS project, placed right before the Sign step, under the Build Settings > iOS section of the Project Navigator:

Then add the following snippet of code to the associated Script Editor:

Var buildLocation As String = CurrentBuildLocation
Var appPackageName As String = CurrentBuildAppName

Var cleanBinaryName As String = ReplaceAll(appPackageName, ".app", "")

Var command As String
command = "cd " + buildLocation + _
" && cd " + Chr(34) + appPackageName + Chr(34) + _
" && install_name_tool -change /System/Library/PrivateFrameworks/WebKit.framework/WebKit /System/Library/Frameworks/WebKit.framework/WebKit " + Chr(34) + cleanBinaryName + Chr(34) + _
" && cd .. " + _
" && xattr -cr " + Chr(34) + appPackageName + Chr(34) + _
" && codesign --force --deep --sign - " + Chr(34) + appPackageName + Chr(34)

Var result As String = DoShellCommand(command)

To test it, select Project > Run On and choose any of the available iOS 27.0 Simulators already installed on your Mac as part of the Xcode plus iOS SDK 27 installation process.

If everything goes well, your iOS project will run without issues as it did with previous Xcode and iOS SDK configurations, or even during the beta cycle for Xcode 27.0 and iOS SDK 27.0.

Javier Menendez is an engineer at Xojo and has been using Xojo since 1998. He lives in Castellón, Spain and hosts regular Xojo hangouts en español. Ask Javier questions on Twitter at @XojoES or on the Xojo Forum.