I searched long on this issue. There are several reasons causes this issue.
If you are facing when you and Swift code/library in an Objectice C project you should try Solution 1-2-3
If you are facing this issue with a new a Swift project Solution 4 will fit you best.
### Solution 1: ###
Restart Xcode, then computer and iPhone
### Solution 2: ###
Go to project build settings and set `Always Embed Swift Standard Libraries` (previously `Embedded Content Contains Swift Code`) flag to `YES`
### Solution 3: ###
Go to project build settings and add `@executable_path/Frameworks` to `Runpath Search Paths` option
### Solution 4: ###
If none of above works, this should. Apple seems to be ninja patched certificates as mentioned in [AirSign's post](
[To see links please register here]
)
At InHouse certificates
`Subject: UID=269J2W3P2L, CN=iPhone Distribution: Company Name, O=Company Name, C=FR`
they added a new field named **OU**
`Subject: UID=269J2W3P2L, CN=iPhone Distribution: Company Name, OU=269J2W3P2L, O=Company Name, C=FR`
so you should just recreate **certificate and provision**