I am using react native to develop my first cross-platform app. On my attempts to archive it, I encounter, the following error. I think it only happens in yoga library(?) or something. The error lies under yoga in the left pane...
Showing Recent Errors Only
SetOwnerAndGroup username:domänen-benutzer /Users/username/Library/Developer/Xcode/DerivedData/ReactHandHeld-asokbujgobowgaaaypozpydvtdur/Build/Intermediates.noindex/ArchiveIntermediates/ReactHandHeld/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a
cd /Users/username/ReactHandHeld/node_modules/react-native/React
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/sbin/chown -RH username:domänen-benutzer /Users/username/Library/Developer/Xcode/DerivedData/ReactHandHeld-asokbujgobowgaaaypozpydvtdur/Build/Intermediates.noindex/ArchiveIntermediates/ReactHandHeld/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a
chown: domänen-benutzer: illegal group name
Command /usr/sbin/chown failed with exit code 1
I had exactly the same issue, I never created any group with german special characters (umlauts), I spent some time trying to figure out where the folder is located on disk or in the project but in vain, then I deleted derived data, cleaned the project, restarted Xcode and everything was working again.
Related
I am trying build an IOS app written in ReactNative. The application written using XCode 11.4. Then I got a new Macbook with XCode version 12.5 installed. So I cloned the project from the git and run npm install and tried to run the project using XCode. Then I got the following error.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I checked any issues as suggested by the accepted answer in this link,https://stackoverflow.com/questions/10373016/command-xcode-app-contents-developer-toolchains-xcodedefault-xctoolchain-usr-bi. But there is nothing wrong with it.
Also, I tried cleaning the project and building the project again. It did not solve the problem as well.
Then I tried deleting the project targets that are for tests well and tried to clean and build the project again. But it did not work either.
I tried deleting everything in the Derived Data folder and tried building the project again as well. It did not work either.
When expand the log, this is the error I am seeing.
In file included from /Users/xandasupport/Desktop/Wais/PCL/pcl-app/node_modules/react-native/ReactCommon/jsi/JSIDynamic.cpp:6:
In file included from /Users/xandasupport/Desktop/Wais/PCL/pcl-app/node_modules/react-native/ReactCommon/jsi/JSIDynamic.h:8:
/Users/xandasupport/Desktop/Wais/PCL/pcl-app/node_modules/react-native/React/../third-party/folly-2018.10.22.00/folly/dynamic.h:63:10: fatal error: 'boost/operators.hpp' file not found
#include <boost/operators.hpp>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Why am I getting that error and I can I possibly fix it?
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.
The codesigning process fails when it tries to sign my app. As the affected subcomponent is the app's png icon mentioned.
/Users/myuser/Library/Developer/Xcode/DerivedData/MyApp-aeqboqclqpxecfgjtkrlgvqkhzxb/Build/Products/Debug-iphonesimulator/MyApp.app: code object is not signed at all
In subcomponent: /Users/myuser/Library/Developer/Xcode/DerivedData/MyApp-aeqboqclqpxecfgjtkrlgvqkhzxb/Build/Products/Debug-iphonesimulator/MyApp.app/AppIcon29x29#2x.png
Command /usr/bin/codesign failed with exit code 1
I'm quite irritated as I'm seeing this for the first time.
Thanks!
i have solved this issue. you should navigate to ~/Library/Developer/Xcode/DerivedData here and remove MyApp-aeqboqclqpxecfgjtkrlgvqkhzxb using this rm -rf command. then restart your xcode.
Faced the same problem (codesign failed with exit code 1 in .png subcomponent) week ago, spent so long to find the right answer. Leaving my solution here and hoping someone.
Background: I was merging some framework from another apps, and don't know why that Xcode copy an extra "Resource" file under the Framework group (the "Resource" file having the same path as the "Resource" group which is on the same level to Framework group).
All I do is to right-click and "remove reference" of the duplicated "Resource" file, and build successfully.
I guess Xcode is just not happy about the duplicated "Resource" group/file (showing in the Project Navigator), and I would suggest anyone having a codesign failed in subcomponent of .png file to check if their "Resource" group is duplicated.
I changed the name of my app from X to Y. It was working before, but for some reason it no longer is working after doing a fresh pull. It's giving me this error (from YTests):
ld: file not found: <DerivedData Directory>/X.app/X
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It's looking for X.app instead of Y.app. I've looked through the build settings and it is Y.app everywhere. It's looking for the wrong file inside of Tests. When I disable testing, I can run the app but I still get the error. Any suggestions?
Note: I'm using Xcode6-Beta5.
After digging around, I realized that this was the actual cause of the error. What confused me is that it was working for a while, and then it stopped all of a sudden.
xcode 4 fails to initiate unit tests (with linker error) after I created a new scheme
The solution is:
Go to build settings of the test target.
Search for your old app name.
Replace old app name with new app name. (Linking -> Bundle Loader -> Debug & Release)
There are many questions about 'linker command failed with exit code 1 (use -v to see invocation)' error.
I have solved it a few times. Removing 'library search path', delete and add again libraries(Admob, Flurry).
After that it works fine.
However, the key point of my problem is the error occurs again if I restart xcode. Solve it again and do some job. On the next day, the error occurs again...
The condition is xcode 5.1.1 & OSX 10.9.3 & iOS 6.1 7.1 simulator
Problem was resolved by
'Copy items into destination group's folder (if needed)' option checking.
I have thought that framework and libraries don't need to copy option, and it worked well before. But in this time, it doesn't.