Getting "The application cannot be opened because you do not have permission to view it." After converting the project code from 2.2 to swift 3.0
I recently opened my old project (which is written in Swift 2.2 and a project built in Xcode 7.2.) In the latest XCode 8.3.1. Xcode asked me to convert the project to swift 3 as XCode 8.3.1 does not support older version of swift. I clicked on the conversion project and some changes are done automatically, some Pods I updated with pod install, and some manually added new swift3 classes. Basically all the syntax of the viewController class was manually changed to swift3. It takes two days to successfully create a project in Xcode 8.3.1. Now when I run my project on a device or simulator it shows me an error like:
The file "AppName.app" cannot be opened because you do not have view permission.
I searched a lot on StackOverflow and google and found some solutions. I tried:
- Replacing my info.plist
- Deleting original data
- Duplicating my application
- Edit permission in the project folder Change
- "Compiler for C / C ++ / Objective-C" by default in build settings
- Checking my architectures Clean up my project
- And there are no physical folders either.
- Entered package name As: $ {PRODUCT_NAME}
- Changed executable file: $ {EXECUTABLE_NAME}
But nothing works, please tell me what should I do? I have a backup of the project if I have to use old Xcode to run the project every time? Please, please do not close this question, as no solutions working on the older question posted on StackOverflow and this question is different due to swift3 as well. Thank you in advance.:)
source to share