In my react-native project, I did remove Podfile.lock and Pods folder to re-install them due to some version conflict. Installing the pods for with two floowing approaches
pod install with or without --repo-update flag at ios folder
bundle exec pod install --repo-update --project-directory=ios/ at
root,
the process gets stuck at generating pods project, the
system slows down, and after some minutes system shuts
down/restarts. How should I troubleshoot what is going wrong?
Also if VSCode is open, the code helper (renderer) also get consumes high percentage of cpu when pod install starts
System:
OS: macOS 11.3
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU # 1.40GHz
Memory: 308.68 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
Yarn: 2.4.0 - ~/<projectPath>/node_modules/.bin/yarn
npm: 6.14.10 - ~/.nvm/versions/node/v14.15.4/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /Users/amir/.rvm/gems/ruby-2.7.0/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 23, 25, 26, 27, 28, 29
Build Tools: 27.0.3, 28.0.3, 29.0.2
System Images: android-26 | Intel x86 Atom, android-26 | Intel x86 Atom_64, android-26 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 11.0.2 - /Users/amir/.sdkman/candidates/java/current/bin/javac
npmPackages:
#react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
It's the flipper problem
I found the solution here
Running with --verbose showed me the library causing the problem, https://github.com/facebook/flipper/issues/2248#issuecomment-830060572 fixed it
Related
I was working on a .netcore project on a Mac Mini with M2 CPU.
I saved the .cs file, and the .net rebuild started (It was running with dotnet watch run).
Instead of success, I received this:
dotnet watch 🚀 Started You must install .NET to run this application.
App: /Users/xxxx/xxxx/bin/Debug/net6.0/api
Architecture: arm64 App host version: 6.0.13 .NET location: Not found
I have two SDKs installed. The output of dotnet --info
.NET SDK: Version: 7.0.102 Commit: 4bbdd14480
Runtime Environment: OS Name: Mac OS X OS Version: 13.2 OS
Platform: Darwin RID: osx.13-arm64 Base Path:
/usr/local/share/dotnet/SDK/7.0.102/
Host: Version: 7.0.2 Architecture: arm64 Commit:
d037e070eb
.NET SDKs installed:
6.0.405 [/usr/local/share/dotnet/sdk]
7.0.102 [/usr/local/share/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.13
[/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.2
[/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.13
[/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.2
[/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
The funny!! thing it happened suddenly, everything was working fine one moment, and the next, now it says .net is not installed at all.
Does anyone have a problem like this?
I have recently update my macOS to Ventura and XCode to 14.0 and when I try to run the app from command line it works perfectly fine.
But when I try to build the project on XCode or archive it, I get this error at the very end of building process:
framework not found "EXAV"
My system configurations are:
System:
OS: macOS 13.0
CPU: (8) x64 Apple M1
Memory: 16.96 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.3 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 6.14.13 - /usr/local/bin/npm
Watchman: 2022.10.24.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16 - /usr/bin/javac
npmPackages:
#react-native-community/cli: ^7.0.3 => 7.0.3
react: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
I have recently ejected my project from expo to bare react native and I wanted to build my project with Xcode but every time I try to open project files (.xcodeproj and .xcworkspace) inside ios directory Xcode crushes. has anyone come across the same issue or are there any possible solutions to this as I can not also see any errors other than app crush to diagnose the issue.
FYI here are my react-native info
System:
OS: macOS 10.15.6
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU # 2.30GHz
Memory: 98.73 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.6.0 - /usr/local/bin/node
Yarn: Not Found
npm: 6.14.6 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 29
Build Tools: 29.0.2
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 11.6/11E708 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_265 - /usr/bin/javac
Python: 3.7.6 - /Users/amiinamo/.pyenv/shims/python
npmPackages:
#react-native-community/cli: Not Found
react: ~16.11.0 => 16.11.0
react-native: ~0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
after I run expo start
the web console open successfully, but the iOS simulator can't work as usual
Error installing or running app. Error: Command failed: osascript -e tell app "System Events" to count processes whose name is "Simulator"
28:69: execution error: 未獲授權傳送 Apple Event 給「System Events」。 (-1743)
How can I fix this?
React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU # 2.30GHz
Memory: 38.77 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - /usr/local/bin/node
npm: 6.9.0 - ~/.npm-global/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.5.0 => 16.5.0
react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1
npmGlobalPackages:
react-native-cli: 2.0.1
I used this link to help me figure it out: macOS Mojave, Automator “Not authorized to send Apple events to System Events.” 32
I went to
System Preferences > Security & Privacy > Automation > Privacy:
and made sure 'System Events' was checked under xcode
There were others suggesting to restart my mac so that may help as well. Good luck!
I just updated to Sierra and installed Xcode 8.2.1 from the Developer Portal.
(Why didn't I use the App Store? Read here.)
In the past, to upgrade to new versions of Xcode, I would download both the main .xip and the CLT package from the portal, replace Xcode in /Applications and then install the tools package. With 8.x, it seems like the .xip contains both packages installed as Homebrew doesn't complain about the tools being slightly out of date - brew doctor.
However, brew config lists the CLT as N/A. If there isn't a separate download, how can I find their install location?
$ brew config
HOMEBREW_VERSION: 1.1.13-19-g55c02ae77
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 55c02ae7747bf05eadec95c91497d06ec3dd2ded
Last commit: 17 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c1b829f4e31955bc8c9e19227ab7a41e92ab9b77
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.12.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/Chris/.rbenv/shims/ruby => /usr/local/Cellar/ruby/2.4.1_1/bin/ruby
Java: N/A
macOS: 10.12.3-x86_64
Xcode: 8.2.1
CLT: N/A
X11: N/A
Worse, having the CLT for Xcode automatically downloaded and installed on my Macbook Pro on April 26, 2017 causes weird things such as unusable built-in camera.
Built-in camera remains unusable after 3 reboots.
Had to uninstall XCode after that update that said:
Command Line Tools (macOS Sierra version 10.12) for Xcode
Version 8.3. The Command Line Tools enable UNIX-style development...
Installed Apr 26, 2017
Xcode 8.3.2 includes Swift 3.1 and SDKs for iOS 10.3 ...
Installed Apr 20, 2017
Then camera starts working again after reboot.