My macOS App runs fine while debugging, with the framefwork embedded. But when I archive it for the App Store the resultand binary crashes with this error, how do I resolve this? Thanks.
Dyld Error Message:
Library not loaded: @rpath/ObjectiveDropboxOfficial.framework/Versions/A/ObjectiveDropboxOfficial
Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/Krypton-gtvflmsjkkiprjawxtyiymiepcwp/Build/Products/Debug/Krypton.app/Contents/MacOS/Krypton
Reason: no suitable image found. Did find:
/Users/lusol/Library/Developer/Xcode/DerivedData/Krypton-gtvflmsjkkiprjawxtyiymiepcwp/Build/Products/Debug/Krypton.app/Contents/MacOS/../Frameworks/ObjectiveDropboxOfficial.framework/Versions/A/ObjectiveDropboxOfficial: code signature invalid for '/Users/lusol/Library/Developer/Xcode/DerivedData/Krypton-gtvflmsjkkiprjawxtyiymiepcwp/Build/Products/Debug/Krypton.app/Contents/MacOS/../Frameworks/ObjectiveDropboxOfficial.framework/Versions/A/ObjectiveDropboxOfficial'