Build Successful but installation failed on any devices and on any simulators

Hello Everyone,


I hope you can help me on this issue 🙂


I have a xcode project that builds on all xcode versions (6, 7, 8, 9 and 9.4). The build is always successful. But the problem is that installation failed on all devices and all simulators.


The error message for any devices is : "There was an internal API error."

The error message for any simulators is :"Installation Failed".


I tried to clean the project, to delete derived data folder, to restars xcode and even the computer. But nothing resolved the issue.


I also find the simulator log about the error :


com.apple.dt.Xcode[11252] <Error>: installApplication:withOptions:error:: Error Domain=IXUserPresentableErrorDomain Code=1 "This app could not be installed at this time." UserInfo={NSLocalizedDescription=This app could not be installed at this time., NSUnderlyingError=0x7fe7cbd9b5c0 {Error Domain=MIInstallerErrorDomain Code=4 "Failed to chmod /Users/press4kids/Library/Developer/CoreSimulator/Devices/31D354C7-1D36-42D9-A08D-160AF2754C08/data/Containers/Bundle/Application/18976783-425F-4A94-953E-1DB32A328C30/News-O-matic.app/News-O-Matic : No such file or directory" UserInfo={NSLocalizedDescription=Failed to chmod /Users/press4kids/Library/Developer/CoreSimulator/Devices/31D354C7-1D36-42D9-A08D-160AF2754C08/data/Containers/Bundle/Application/18976783-425F-4A94-953E-1DB32A328C30/News-O-matic.app/News-O-Matic : No such file or directory, LegacyErrorString=ExecutableTwiddleFailed, FunctionName=-[MIExecutableBundle makeExecutableWithError:], SourceFileLine=1162, NSUnderlyingError=0x7fe7cdb7e050 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}


I was thinking that the issue was linked to the provisionning profil. But i have all my certificates working and well configure. And the thing that disturbes me, it is the fact that it should work on simulator at least. And it is not the case.


Please any helps on that issue or any tips will be very appreciated.

Thanks