Troubleshooting
Installing & Building Errors
No such module 'LMGUI' when compiling
Caused by issues with M1 Mac + some versions of CocoaPods. To fix, explicitly set ONLY_ACTIVE_ARCH
to NO
for all pod targets.
In your Podfile
, add a post_install
method like so:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Fixes build issues with Pods on M1 Macs
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end
See the StackOverflow discussion of the same issue with 32 vs 64 bit architectures for more details.
File not found: libarclite_iphonesimulator.a when compiling
Affects: Xcode 13+
Full error message: File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
Some bundled dependencies have a deployment target that is lower than the minimum supported target of newer Xcode versions. To fix, either update or remove the deployment target configured in the Podfile
:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# EITHER
# Set all Pod deployment targets to a specific minimum version
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
# OR
# Delete the setting to use the project default for all pods
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
Runtime Errors
Request can't be completed error when resuming app
This is generally caused when Background Fetch is not enabled, and the app is sent to the background while a network request is pending.
See Quickstart: Additional Configuration for more details.