The error appeared when running a feature module's unit tests with Facebook SDK pods. Two changes fixed it: give the test target the same pods as the module in the Podfile (with inherit! :complete) and run pod install, then edit the test scheme so Run and Test use Debug(Development) and Profile, Analyze and Archive use Adhoc(Production), and run pod install again.
This error when run Unit testing file ex: EditSettingsTests
Unable to load contents of file list: '/Target Support Files/FBAEMKit/FBAEMKit-xcframeworks-input-files.xcfilelist'
Unable to load contents of file list: '/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-xcframeworks-input-files.xcfilelist'
Unable to load contents of file list: '/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-xcframeworks-input-files.xcfilelist'
Unable to load contents of file list: '/Target Support Files/FBSDKCoreKit_Basics/FBSDKCoreKit_Basics-xcframeworks-input-files.xcfilelist'
How to fixing
1. in 'SettingsTests' set pod like 'Settings' and 'pod install'
example:
# MARK: - Settings
target 'Settings' do
project 'Features/Settings/Settings'
pod('FBSDKLoginKit', '12.1.0')
end
# MARK: - SettingsDemo /SettingTests
target 'SettingsDemo' do
project 'Features/Settings/Settings'
pod('FBSDKLoginKit', '12.1.0')
target 'SettingsTests' do
inherit! :complete
end
endend
2. in scheme Change 'SettingsTests' and then select edit scheme
- tab 'Run' change build configuration from 'Development' to 'Debug(Development)'
- tab 'Test' change build configuration from 'Development' to 'Debug(Development)'
- tab 'Profile' change build configuration from 'Production' to 'Adhoc(Production)'
- tab 'Analyze' change build configuration from 'Production' to 'Adhoc(Production)'
- tab 'Archive' change build configuration from 'Production' to 'Adhoc(Production)'
and then 'pod install' again
Note: in Build do not change
3. Run 'SettingsTests' file ex: 'EditSettingsTests'





Comments