two errors:
1: duplicate symbols for architecture x86_64
2:error: cannot parse the debug map for “/Users/—
Library/Developer/Xcode/DerivedData/ProjectName-
dejxrzrmfgomxxcrzloplmsozads/Build/Products/Debug-
iphonesimulator/ProjectName.app/ProjectName”: No such file or directory
Solution:after removing -ObjC from Other Linker Flags. both of them disappered.
The -ObjC Linker Flag
Passing the -ObjC option to the linker causes it to load all members of static libraries that implement any Objective-C class or category. This will pickup any category method implementations. But it can make the resulting executable larger, and may pickup unnecessary objects. For this reason it is not on by default.
–from https://developer.apple.com/library/content/qa/qa1490/_index.html