When you have a plugin written in swift in your
ionic/cordova app, it builds but when archive or export it returns CDVPlugin
not found error. Follow the steps below to resolve the issue.
Note: Run
all ionic commands build, add etc using sudo only.
Ex: sudo
ionic build ios
As we are moving code from windows
to mac, permissions are arising.
Steps:
- In terminal change give permissions
$ Sudo chown –R:staff <your
folder path>
$
sudo chown –R 777 *
- Now go to Target-> build settings
- Look for RunPaths and add below if it’s not there:
$(inherited)@executable_path/Frameworks
@executable_path/Frameworks
- Now look for Header
Search Paths and add the below:
$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include
- Set Enable Bit code to No
- In Deployment section, clear Install Owner and Groups
- Now go to Build Phases and
- Empty Embedded Frameworks, (if any swift plugins are there)
- Go to general and in frameworks add UIKit if not added
No comments:
Post a Comment