enter image description here
I did these steps successfully:
install node.js and the version is 4.0
brew install watchman
brew install flow
the version of OS X Yosemite is 10.10.5
the version of Xcode is 6.4
npm install -g react-native-cli
react-native init HelloWorld
In the end, I run the HelloWorld.xcodeproj,and it build failed like the picture above.
can you help me to solve this problem, thx
It looks like you're opening the HelloWorld project folder and not the Xcode project. If you're using a terminal do this:
cd HelloWorld/ios
open HelloWorld.xcodeproj
or navigate to the ios folder in your HelloWorld application in finder and double click on the xcode project to open it in the right directory.
Related
I am having issues attempting to run my React Native project on my new MacBook Pro. I transferred the project from my old MacBook and downloaded Xcode but I get the following error when trying to run the project.
"%HOME_DIRECTORY%/node_modules/react-native/scripts/generate-specs.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code"
I have installed Homebrew, Watchman and ran pod install but the project is not launching in Xcode.
Can someone please assist?
Thanks.
Look at your package.json file. There are a lot of dependencies in there. They must be installed. If there is no node_modules folder, where your package.json is located, they are not installed.
Installing the dependencies can be done by running yarn install or npm install, depending what package manager you use. Make sure you are in the folder where your package.json is located. Clean your Build Folder from Xcode and run it again. It should work.
So I currently am building my project and running tests fine when using xcode 13.2.1 run with rosetta.
However, when I successfully add an xcode server bot and added a preintegration script as below, the following error occurs: "Could not find 'Alamofire' for 'x86_64-apple-ios-simulator', found arm64."
I have tried many different project settings, but this seems similar to the error that I get when I attempt to run my project using xcode without rosetta. I have a feeling the build system that the xcode server bot is using doesn't make use of the same rosetta settings that are used when I build from xcode.
Does anyone know of a way in which I could get the xcode server bot to build the cocoapods project while producing the necessary x86_64 version of Alamofire for the simulator?
#!/bin/sh
cd $XCS_PRIMARY_REPO_DIR
export PATH="$PATH:/opt/homebrew/bin/"
echo "Working Dir: $XCS_PRIMARY_REPO_DIR"
echo "Loading Bash Profile"
source ~/.bash_profile
echo "INSTALLING COCOAPODS"
brew uninstall cocoapods
brew reinstall cocoapods
echo "INSTALLING PODS"
~/.rvm/wrappers/ruby-3.0.0/pod install --verbose
I have an existing project, that have been tested on an windows + android setup. Now I'm trying to run it on a macbook to test on an Iphone 11 simulator.
react-native-cli: 2.0.1
react-native: 0.64.0
I install the pod file and try to run
react-native run-ios
I get a the following error:
** BUILD FAILED **
The following build commands failed:
CompileC [USER]/Library/Developer/Xcode/DerivedData/andon-hkuetryxdipcrgbcxnseaqnfnaqp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCommon.build/Objects-normal/x86_64/RCTTurboModuleManager.o [PROJECT_PATH]/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I encountered this problem while running a React Native iOS app on macOS. After researching the issue for hours I was able to resolve it with these steps:
Clear the cache of pod by running these commands:
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod setup
Navigate to the ios directory, and delete the Pods directory
While still in the ios directory, run pod install
Navigate back to the project directory, and run npx react-native run-ios
Hope this helps you too!
Probably very late to answer.
I started facing this issue after I upgraded from 0.63.4 to 0.64.2.
If we run from command line was not getting any way to find out the error. When I ran from x-code, found following error message,
/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm:172:8: 'shared_timed_mutex' is unavailable: introduced in iOS 10.0
The reason for that was the following entry in my podfile,
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
After I deleted the above entry it started working like a charm.
ref: https://github.com/facebook/react-native/issues/31250#issuecomment-808312355
Under XCode top menu, Goto XCode->Preferences -> Locations -> Open
Derived Data folder(By clicking the arrow button) (Find screenshot
for your references)
Finder will open Derived Data folder,
Delete Derived Data Folder
Start Metro server using npm start or yarn start
Perform Clean build using cmd+shift+k
Run the application using cmd+r
flutter run -d macOS
Downloading darwin-x64 tools... 107.0s
Downloading darwin-x64-profile tools... 69.7s
Downloading darwin-x64-profile tools... 23.6s
Downloading darwin-x64-release tools... 54.3s
Downloading darwin-x64-release tools... 20.4s
Launching lib/main.dart on macOS in debug mode...
Podfile missing
When i run flutter run -d macOS code it showing Podfile missing and how to fix it?Mac Pro
How to run mac desktop app using android studio?
If it is not possible to run macOS app from android studio then which ide i need to use?
The Podfile missing message may also appear when you have selected the command-line tools. In that case it can be fixed with
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
That fixed it for me when I switched to Flutter 2.0.
I also ran flutter create --platforms=macos . before, but that didn't fix it.
Add desktop support to an existing Flutter project
To add desktop support to an existing project, run the following command in a terminal from the root project directory:
flutter create .
To run your project as a desktop app, use the following command:
flutter run -d macOS
for more
I am using a windows machine. So I have installed MAC OS sierra using VMWare in the same machine.
I have developed a Ionic3 Angular4 application with Cordova.
I have successfully created the .apk file using the command "ionic cordova build/run android" in my Windows.
So now I want to generate .ipa file. So I just moved the entire project to my MAC OS box. Then installed cordova & Ionic.
Now I am trying to build using command "ionic cordova build/run ios"
But getting the below error
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools instance
So executed sudo xcode-select -s /Applications/Xcode.app/Contents/Developer.
But got error /Applications/Xcode.app/Contents/Developer” does not exist
How can overcome these errors and build my ios .ipa file?
Note: Xcode not installed manually. But installed the Xcode via Terminal (a popup opened and asked to install xcode. So clicked install button. Finally It showed Xcode installed successfully)
You will have to install xcode. See the cordova platform guide for iOS. And you will also need the xcode commandline-tools (which you already installed). If you want to run you application in a simulator you will also have to install ios-sim (sudo npm install -g ios-sim#latest). And for deploying your application to a real device ios-deploy (sudo npm install -g ios-deploy#latest)