Xcode 26.0 unknown type name 'sqlite3_context'

I have been using the Mixpanel-Swift SDK alongside the Salesforce Mobile SDK in my iOS project with Xcode 16.4 without any issues. However, after upgrading to Xcode 26, I started encountering a problem related to SQLite3.

Here is the relevant portion of my Podfile setup:

platform :ios, '17.0'

def required_pods source 'https://cdn.cocoapods.org/' source 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Specs.git' use_frameworks!

pod 'SalesforceAnalytics', '13.0.2' pod 'MobileSync', '13.0.2' pod 'SalesforceSDKCore', '13.0.2' pod 'SalesforceSDKCommon', '13.0.2' pod 'SmartStore', '13.0.2' pod 'Mixpanel-swift' end

target 'Test' do required_pods end

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = "" config.build_settings['CODE_SIGNING_REQUIRED'] = "NO" config.build_settings['CODE_SIGNING_ALLOWED'] = "NO" config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '17.0' end end end

Has anyone else encountered a similar issue or discovered a workaround? Any advice or solutions would be greatly appreciated. Thank you in advance!

The file shown in your screenshot is part of the iOS SDK, so it does not normally have compile errors like this. That indicates that the problem is elsewhere in your build configuration, and this file is an innocent victim of a problem elsewhere. I see a build error that says failed to emit precompiled module, so maybe start there and work backwards. Since your project involves Cocoapods, it's possible that tool's configuration is also adding to this issue, so you should work to determine if their configuration set up by their tool is part of the source here, and if that turns out to be the case, you'll want to get in contact with their support resources.

— Ed Ford,  DTS Engineer

@jagadish.kolli@uirevolution, you got the solution . Im facing the same issue

Check if you have this flag: _SQLITE3_H_=1 under Build Settings > Preprocessor Macros (GCC_PREPROCESSOR_DEFINITIONS).

I had this value and this resulted in your same error.

I still need to find why I had this in the first place.

But at least removing it resulted in the project building correctly and I can continue testing it using the new Xcode.

Xcode 26.0 unknown type name 'sqlite3_context'
 
 
Q