Error Pod when Running Unit test Module
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'