I don't know what happened but it throws me the following error, I've tried everything, but from one moment to the next it got misconfigured and sending my app to the iPhone no longer works :(
Now it tells me the following:
And when I go to the keychain it tells me:
It happened that my PC rebooted and changed the date and now to the year 2000, but I adjusted the time and it's ok but still the same.
Then it worked for me to compile, by removing the certificate, turning off the PC, removing all the apps from the Apple website and then in the end it worked by magic. xd
But it gave me this error:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/Stylist.app/Stylist
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/testapp.app/Frameworks/libswiftCore.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/3FC2DC5C-A908-42C4-8508-1320E01E0D5B/testapp.app/Frameworks/libswiftCore.dylib'
(lldb)
And according to this post , the solution is like this and it worked for me:
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/com.apple.dt.Xcode
Delete related certificates and provisioning, both locally and in the developer account. Do not worry that your apps will not stop working. Once deleted, re-generate them again and you're done.
First of all, security certificates require that you have the correct date and time.
Delete the certificates and generate new ones.