-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Xcode's "analyze" on Yoga code surfaces issues #12609
Comments
I have the same issue `** BUILD FAILED ** The following commands produced analyzer issues:
(2 commands with analyzer issues) The following build commands failed: |
Have the same problem |
Same issue here! |
I had the same issue and for my case, deleting
This happened as I imported most of project files from another project. |
@taiki-t Thank you! Deleting In my case I hadn't imported files from an old project, but obviously something had gotten stale somewhere. |
deleting ios/build fixed it! |
I changed app name and app id(bundle identifier) . since then it was crashing with react-native run-ios . by deleting ios/build fixed it !! |
thanks deleting ios/build fixed it. |
Deleting ios/build did not fix my issue. |
I have the same issue, and deleting ios/build did not work. |
Strangely, I get this issue but my build succeeds. |
Same here, deleting the ios/build does not help, at the same time, the build succeeds. |
This issue happened to me once I duplicated my project. I literally copy pasted it and tried to run it. This is the error that I got. |
same here |
I am also getting this issue. It shows build succeeded but hangs at installation. Please someone help me with this. I create a new project using react-native init project and simply ran it using react-native run-ios. |
Same here. |
Same for me. The build succeeds with the analyzer issues but app starts and crash in simulator. Also android app runs OK |
Getting the same problem trying to launch the tutorial project - Simulator launches, it looks like the app is launching in the simulator, then the app crashes. When I click the app icon on the home screen of the simulator, it launches then immediately closes. Have tried launching it in the simulator from Xcode and it crashes too. I see 4 logic errors relating to Yoga in Xcode: YGNodeList.c:26:18: Access to field 'capacity' results in a dereference of a null pointer (loaded from variable 'list') YGNodeList.c:72:22: Array access (via field 'items') results in a null pointer dereference Yoga.c:352:3: Null pointer argument in call to memory copy function Yoga.c:426:3: Null pointer argument in call to memory copy function Looking at the simulator logs, the crash report contains: |
Temporal solution in #15762 by @cxgslegend works for me. Use previous version of react native in init IOS app in simulator working OK |
HELP!!!Facing the same issue and deleting ios/build doesn't fix it The following commands produced analyzer issues:
(2 commands with analyzer issues) The following build commands failed: Installing build/Build/Products/Debug-iphonesimulator/bhajiwala.app Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/bhajiwala.app/Info.plist |
@aashutoshjha check out the comment above by @rbivan . That worked for me and some others. |
@aashutoshjha I did sudo npm start to start packager and then ran react-native run-ios and that worked for me. I don't know the reason |
Thanks @caseybaggz @AggarwalAnkit , tried both the things. Solved the analyzer issues but it still fails: The following build commands failed: Installing build/Build/Products/Debug-iphonesimulator/bhajiwala.app Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/bhajiwala.app/Info.plist |
I also got this problem. Build succeeds but immediately crash after splash screen opened. While if i run the app via XCode, it runs perfectly. :( whyyyy |
SOLUTION: |
@aashutoshjha I'm having the exact same issue you are, did you ever manage to solve it? ** BUILD FAILED ** The following commands produced analyzer issues: The following build commands failed: Installing build/Build/Products/Debug-iphonesimulator/mapTest.app Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/mapTest.app/Info.plist |
I got a solution that might work for you
|
Please don't do
Its the worst advice ever. After doing this command doesn't open simulator and dependency watcher requires |
@aashutoshjha Having a similar issue as you, did you ever solve it?
With the associated error message: |
@arshbot @ChristopherSheehan01 Wasn't able to solve it by any of the above solutions. The issue if I correctly remember was due to misplaced files in folders. Had to copy the code, create a fresh new file from X-Code and paste it there. |
I resolved this with this comment after trying every solution under the sun.
|
I had this exact same problem and found other errors buried in the log:
Once I unlocked/trusted and killed Btw, this was on a new project after having run |
I have the same issue. deleting ios/build didn't help me! any other solutions? |
Thanks @arshbot ... your solution worked for me - |
try
if you are using Pod |
removing the ios folder and then recreating it does the job but don't forget to do react-native link |
i follow these steps simply And it works for me :) |
run
react-native run-ios
commandDescription
The following commands produced analyzer issues:
Analyze /Users/kenny/projects/almondWallet/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
Analyze /Users/kenny/projects/almondWallet/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
(2 commands with analyzer issues)
The following build commands failed:
Analyze /Users/kenny/projects/almondWallet/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
Analyze /Users/kenny/projects/almondWallet/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
(2 failures)
Additional Information
Please tell me, how to fix Yoga analyze issues, thanks guys!
The text was updated successfully, but these errors were encountered: