IBM Worklight - “Permission denied” when building in Xcode

前端 未结 1 1333
轻奢々
轻奢々 2021-01-19 03:23

I created and built a Worklight project following the official guide on developerWorks. I deployed the app on Android device and it worked fine. But when I built the generat

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-19 04:14

    This is probably a Worklight project that was created in Windows and then the generated Xcode project was moved to Mac to be built in Xcode...

    The problem here is that the buildtime.sh file lost its Execute permission.
    This defect is fixed and will be available in Worklight 6.1.0, available in the coming weeks.

    Solutions:

    • Assuming you have brought the generated Xcode project from Windows to Mac:

      1. Extract the zipped project
      2. find in it the buildtime.sh file
      3. Right-click it > Get Info
      4. At the bottom change the Owner permission to Read & Write

    • If that doesn't work, you can also change the permission using CHMOD:

      1. Copy the path to the folder holding the buildtime.sh file
      2. Open the Terminal app
      3. Run the following command (but use your own path from 1 above): chmod 755 /Users/idan/Documents/Worklight/workspace-6001/TestProject/apps/TestApp/iphone/native/buildtime.sh

    • If you have the entire Worklight project in Mac, then in Eclipse:

      1. Right-click the iphone\native\buildtime.sh file > properties
      2. Add the Execute permission for Owner
      3. Re-build to generate an updated Xcode project
      4. Open in Xcode > Run

    You can also:

    • Create the Worklight project to begin with, in Eclipse in Mac.
      This project should not exhibit this issue then.

    0 讨论(0)
提交回复
热议问题