@FrostyBagg
This works! thank you
For people who encounter the following error, PLEASE check the bold keywords to make sure it's the same problem
Code Signing /Users/***/Library/Developer/Xcode/DerivedData/Zuzu-halnevgbwzzefabntoduqfddqjay/Build/Products/Debug-iphoneos/YYY.app/Frameworks/ZZZZ.framework with Identity Apple Development: XXXXXX (YYYYYY)
/usr/bin/codesign --force --sign 782277B24E70444CAB5460500BBC7ACCD0AEE368 --preserve-metadata=identifier,entitlements '/Users/pai/Library/Developer/Xcode/DerivedData/Zuzu-halnevgbwzzefabntoduqfddqjay/Build/Products/Debug-iphoneos/YYY.app/Frameworks/ZZZZ.framework'
Warning: unable to build chain to self-signed root for signer "Apple Development: XXXXXX (YYYYYY)"
/Users/pai/Library/Developer/Xcode/DerivedData/YYY-halnevgbwzzefabntoduqfddqjay/Build/Products/Debug-iphoneos/YYY.app/Frameworks/ZZZZ.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code