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 generated native project with Xcode, I got the following error:
Running a custom build phase script: buildtime.sh /Users/gengsm/Documents/workspace/MobileClientMobileBankIphone-apsfwvobsizahnbjzlwhgbsbwusj/Build/Intermediates/MobileClientMobileBankIphone.build/Debug-iphonesimulator/MobileClientMobileBankIphone.build/Script-427B829D1393724500F223DC.sh: line 7: /Users/gengsm/Documents/workspace/BTT_Mobile/MobileClient/apps/MobileBank/iphone/native/buildtime.sh: Permission denied DONE with script: buildtime.sh (exitStatus=126)\n\n
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:
Owner
permission to Read & Write
If that doesn't work, you can also change the permission using CHMOD:
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:
Execute
permission for Owner
You can also:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With