"Permission denied" error while building AllJoyn framework - ios

I am trying to build Alljoyn framework for my iOS application. But when build this framework I'm getting can't exec '/usr/local/Cellar/scons' (Permission denied) error. I have done the following 'sudo chown -R whoami /usr/local', but no luck!
Can you please help me on what the error could be?

Make sure to set the complete path including the destination file.
I was getting a similar error because I was taking the file path as "/xxxx/alljoyn-15.04.00-osx_ios-sdk/alljoyn_objc/bin/".
The error vanished after updating the file path as : "/xxxx/alljoyn-15.04.00-osx_ios-sdk/alljoyn_objc/bin/AllJoynCodeGenerator"

Related

Integrating Unity to Swift project with Push Extension using "jiulongw/swift-unity "

Good day!
I'm trying to integrate unity using jiulongw/swift-unity into my project, which has Notification Extension (OneSignal). When assembling, I get the following error:
<unknown>:0: error: error opening input file '/Volumes/DataDisk/TestOneSignal/IOSTemplate3OneSignal/OneSignalNotificationServiceExtension/Unity/Bridging-Header.h' (No such file or directory)
<unknown>:0: error: cannot open file '/Users/vitaliykozlov/Library/Developer/Xcode/DerivedData/DemoProject-haxduxdlnjguxkcogcuqaymwlynv/Build/Intermediates.noindex/PrecompiledHeaders/Bridging-Header-3KPPRZGOMOC4Z.dia' for diagnostics emission (No such file or directory)
Command PrecompileSwiftBridgingHeader failed with a nonzero exit code.
Although integration into a project without Notification Extension (OneSignal) works fine. I use the latest versions of Xcode and Unity.
Please help the question is very important, I've tried everything !!!
once i get this kinds of error may be this can help you
firs of all open your project in finder and give read,write,edit permission to this file Bridging-Header.h then also give permission this file using terminal by sudo chmod 777 /*path of yourfile */ or chmod -R 777 foldername or pathname

react native can't find package.json after workaround for load bundle 8081 failed

Facing this error
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:(Unable to resolve module (see pic below). Indeed, none of these files exist:
iOS Simulation Error
Other forums suggested workaround using
rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json
Now I see the following error in terminal:
No such file or directory
How do I create this package.json? What is causing the localhost error and how can I fix this?
I am facing the same issue. The file you pointed to is probably this -
rm node_modules/react-native/local-cli/core/__fixtures__/files/package.json
However, doing this didnt resolve my issue.

OS\Cordova Permissions Error > "Error: EACCES: permission denied, scandir"

When I run 'cordova build ios' on an existing project I get a permissions error when accessing the projects ios folder.
Node has been installed using 'NVM' and when I run 'which cordova' and it gives me the correct path in the .nvm folder.
I'm also able to install npm packages without sudo and can run 'cordova build ios' on on other projects no problem.
Error printed in the terminal:
cordova-custom-config: Skipping auto-restore of config file backup(s)
Error: EACCES: permission denied, scandir '/Users/username/project/cordova/platforms/ios/build/device/libCordova.a'
The last resort I can think is removing the ios platform and adding again, but the last dev may have made some changes to these files so would like to avoid that if possible.
I got the same error but for many other files, all when running 'cordova build ios'. The files in question were all in the same folder, all owned by 'root'. I am pretty sure that I had previously and mistakenly run 'sudo cordova build ios', which would have generated the files initially.
I ran a 'sudo chown -R [me] [folder]' and got my build back.

React-native - Build failed due to double-conversion

I have created new react-native project through terminal.
react-native init PlayWithAnimation
when I run the react-native app through Xcode. I got this error.
/bin/sh -c \"/Users/sumit/Desktop/React\ Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh\"
/Users/sumit/Desktop/React >Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 2: cd: /Users/sumit/Desktop/React: No such file or directory
/Users/sumit/Desktop/React >Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 3: /Users/sumit/Desktop/React Native/RNN/node_modules/react-native/React/scripts/ios-install-third-party.sh: No such file or directory
/Users/sumit/Desktop/React
Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 3: exec: /Users/sumit/Desktop/React Native/RNN/node_modules/react-native/React/scripts/ios-install-third-party.sh: cannot execute: No such file or directory
The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/sumit/Desktop/React\
Native/RNN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
These are the version which I have used:
node v8.0.0
npm 5.0.3
react-native-cli: 2.0.1
react-native: 0.46.0
xcode 8.3.3
I have checked related to other stackoverflow Q & A but did't get proper solution.
Temporary Solution:
It works smoothly if I create react-native with version="0.44.0". But in version 0.45.0, 0.46.0, 0.47.0 builds are failed and same "double-conversion" issue is getting. And one more thing, when I create new project third-party directory is missing.
node_modules/react-native/ (missing third-party directory)
What would be the problem ?
Tried Solution 1:
I did the following steps:
download the files needed inside the .sh, put it in the ~/.rncache/.
copy the downloaded files into node_modules/react-native/third-party/, ran tar -zxf *** to each file.
build again. But not worked.
Tried Solution 2:
Handling third party build error on react-native 0.46x.
and tried with github issue.
I was really excited to finally get started with React Native but this bug absolutely kills my ability to proceed. I'd really appreciate if someone could help me out with this.
Got the solution from jerry han here: The life saver
Hi Bala, As you can see the error log, That error was from ‘WhiteSpace’ on your working path.
Real Path : /Users/sumit/Desktop/React\ Native/
On cd cmd log : /Users/sumit/Desktop/React:
You should rename your working path to ‘/Users/sumit/Desktop/react_native’.
That will be helpful for you.
With developing or operation work, you may be better not to use ‘space’ on the path.
For me, what worked was just updating the Code Signing preference in Xcode to something different and back again.
E.g. I have Automatically manage signing originally turned on. Turning that off and back on again seems to resolve this issue.

Cordova Xcode build failed "Permission denied"

I am trying to build an iOS app using Xcode and Cordova, however I keep getting this error message:
cordova/lib/copy-www-build-step.sh: Permission denied
Has anyone overcome this problem before?
You can fix it like this also
cd platforms/ios/cordova/lib
sudo chmod +x copy-www-build-step.sh
This basically gives the file execute permission only instead of chmod 777 which gives it full permission (read, write, execute.) For anyone wanting clarification on what the difference is.
Faced exact same issue.
I guess git messed up the permissions between windows / mac.
cd platforms/ios/cordova/lib
sudo chmod 777 copy-www-build-step.sh
Then try to build the project. Worked for me.

Resources