Multiple errors after migrating to Xcode 10
Solution 1:
For the below error:
Could not delete /Users/maropost/Documents/Work/iOS/Products/SDK/SwiftFromStart/MPPush/build because it was not created by the build system and it is not a subfolder of derived data.
According to https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes/build_system_release_notes_for_xcode_10
The Workaround is to Delete the build folder manually which is in your framework's project directory. Hope this helps!
Solution 2:
I have fixed issues by enabling Legacy mode
. Do follow the below steps it will help you.
In Xcode, Goto File -> Project/Workspace settings > Advanced -> Select Legacy
Please refer below screenshots for further assistance.
IMPORTANT NOTE:
CLEAN + BUILD & MAKE SURE YOUR DELETED DERIVEDATA FOLDER FROM TRASH
Check your Copy Bundle Resources in Build Phase
, You should find some files(should be images in your situation) in that list twice. Delete them and rebuild them.