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
Related
My project use cocoa pods to manager third library.
And I incorporating linphone-SDK in my object.
When I adding run script after embedded linphone frameworks,my project show some errors.
I listed the messages as below.
fatal error: lipo: can't open input file: /Users/zcon21/Library/Developer/Xcode/DerivedData/path/Frameworks/Alamofire.framework/Alamofire (No such file or directory)
rm: /Users/zcon21/Library/Developer/Xcode/DerivedData/flyingSoul-client-eaugkyhuzdcucvcjxkgjqyewjspt/Build/Products/Debug-iphoneos/flyingSoul-client.app/Frameworks/Alamofire.framework/Alamofire: No such file or directory
mv: rename /Users/zcon21/Library/Developer/Xcode/DerivedData/flyingSoul-client-eaugkyhuzdcucvcjxkgjqyewjspt/Build/Products/Debug-iphoneos/flyingSoul-client.app/Frameworks/Alamofire.framework/Alamofire-merged to /Users/zcon21/Library/Developer/Xcode/DerivedData/flyingSoul-client-eaugkyhuzdcucvcjxkgjqyewjspt/Build/Products/Debug-iphoneos/flyingSoul-client.app/Frameworks/Alamofire.framework/Alamofire: No such file or directory
It looks like third library problems.
enter image description here
enter image description here
How can I fix it?
Please help me out.
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.
Whenever I attempt to build I get this error:
<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.NewestCardsEntity+CoreDataClass.swift'
<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.NewestCardsEntity+CoreDataProperties.swift'
<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.SetsEntity+CoreDataClass.swift'
<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.SetsEntity+CoreDataProperties.swift'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
This has gotten quite frustrating since I have tried all other solutions to no avail. I can confirm that these files are in my compile sources as well as in the same folder as all other swift files. These files were generated by core data. Even when I deleted any trace of these files, I still manage to get this error.
So far I have tried : restarting and cleaning everything, deleting derived data, deleting the files causing the problem completely from my computer and from Xcode so that it would not try to look for it, ensuring that everything is part of compile sources and located in the same place, compiling on simulator as well as real iPhone
Figured it out. Just had to swap the drop down in .xcdatamodeld file that appears when you click on an entity and look at the "class" section in the right panel. needs to be set to Manual/None when you generate the classes.
You have to decide whether you are triggering NSManagedObject subclass generation manually or let Xcode do this for you.
You can finde more detailed information in this answer.
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"
I want to use OpenCV framework in my project. But while building opencv from source , i am getting errors. I am using this link to install opencv
I am getting this error in terminal of which i am attaching images.
i also used opencv2.framework which is already built and add this in my project but its showing linker error.
Please help me to use openCV.
Thanks in advance. . . .
Here's how to fix it...
Google your error: "xcrun error: could not stat active Xcode path"
Click on the first link and go to
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode45-DP1.app/Contents/Developer'. (No such file or directory)
if still unclear try the next couple of links
change xcrun developer path
Resolved: Error “Could not stat active Xcode path”
When Google and SO fail you, come back here explaining what you have tried (and post your text errors as text not image!)
As regards your linker error (what linker error? post it!) my answer here might help
How to resolve iOS Link errors with OpenCV