I have an app that runs perfectly on the simulator, the same is already signed with my dev account. But when I try to build to run on a "physical" device some errors happen, I tried to reinstall the libraries used by Pods and I tried to delete the DerivedData folder but without success. What could be causing this error?
Here's the error stack:
PhaseScriptExecution [CP] \ Embed \ Pods \ Frameworks /Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Intermediates.noindex/my-project.build/Debug-iphoneos/my-project.build/Script-615B2B9C4AAE04ED75B72A96.sh cd / Users / diego / Development / project / my-project / bin / sh -c /Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Intermediates.noindex/my-project.build/Debug-iphoneos/my-project.build/Script-615B2B9C4AAE04ED75B72A96 .sh
mkdir -p /Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Products/Debug-iphoneos/my-project.app/Frameworks rsync --delete -av --filter P. *. ?????? --filter "- CVS /" --filter "- .svn / "--filter" - .git / "--filter" - .hg / "--filter" - Headers " --filter "- PrivateHeaders" --filter "- Modules" "/Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Products/Debug-iphoneos/Alamofire/Alamofire.framework" "/Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Products/Debug-iphoneos/my-project.app/Frameworks" building file list ... done Alamofire.framework / Alamofire.framework / Alamofire Alamofire.framework / Info.plist
sent 1624660 bytes received 70 bytes 3249460.00 bytes / sec total size is 1624230 speedup is 1.00 Code Signing /Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Products/Debug-iphoneos/my-project.app/Frameworks/Alamofire.framework with Identity iPhone Developer: Diego Augusto (4L5839GH78) / usr / bin / codesign --force --sign 720B129FDEA6BFFF9AF1810B80DB6BC0A7DED204 --preserve-metadata = identifier, entitlements '/Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Products/Debug-iphoneos/my-project.app/Frameworks/Alamofire.framework' /Users/diego/Library/Developer/Xcode/DerivedData/my-project-hcjzjblytpxfyucbgwmphvetikwt/Build/Products/Debug-iphoneos/my-project.app/Frameworks/Alamofire.framework:
errSecInternalComponent Command / bin / sh failed with exit code 1