I have been trying to build an ios app on my macbook pro M2 chip from last couple of days, but unfortunately i was not successful in doing so, I have been getting errors which i am not able to solve. If anyone of you could help me then it would be great 👍😄
- I am using Node.js v20.12.0
- Error that i am getting is
The following build commands failed: CompileC /Users/test/Library/Developer/Xcode/DerivedData/billing-bdwqgkmjwzxwzibukdnkzpjstgkf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-image-picker.build/Objects-normal/arm64/ImagePickerManager.o /Users/test/Desktop/Development/Billi/node_modules/react-native-image-picker/ios/ImagePickerManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-image-picker' from project 'Pods')(1 failure)- My Environment configuration is
System: OS: macOS 14.4 CPU: (8) arm64 Apple M2 Memory: 183.06 MB / 16.00 GB Shell: version: "5.9" path: /bin/zshBinaries: Node: version: 20.12.0 path: ~/Library/pnpm/node Yarn: version: 1.22.22 path: ~/Library/pnpm/yarn npm: version: 10.5.0 path: ~/Library/pnpm/npm Watchman: Not FoundManagers: CocoaPods: version: 1.15.2 path: /usr/local/bin/podSDKs: iOS SDK: Platforms: - DriverKit 23.0 - iOS 17.0 - macOS 14.0 - tvOS 17.0 - watchOS 10.0 Android SDK: Not FoundIDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10406996 Xcode: version: 15.0/15A240d path: /usr/bin/xcodebuildLanguages: Java: version: 11.0.20 path: /usr/bin/javac Ruby: version: 2.6.10 path: /usr/bin/rubynpmPackages:"@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: ^18.2.0 react-native: installed: 0.72.6 wanted: ^0.72.5 react-native-macos: Not FoundnpmGlobalPackages:"*react-native*": Not FoundAndroid: hermesEnabled: true newArchEnabled: falseiOS: hermesEnabled: true newArchEnabled: false- My package.json is
{"name": "billing","version": "0.0.1","private": true,"scripts": {"android": "react-native run-android","ios": "cd ios && pod install && cd .. && react-native run-ios --simulator 'iPhone SE (3rd generation)'","start": "react-native start","release": "cd android && ./gradlew clean&& ./gradlew assembleRelease","test": "jest","lint": "eslint .","preinstall": "npx only-allow pnpm" },"dependencies": {"@firebase/auth": "^1.3.0","@firebase/auth-types": "^0.12.0","@firebase/firestore": "^4.2.0","@react-native-async-storage/async-storage": "^1.19.3","@react-native-community/slider": "^4.4.3","@react-native-firebase/app": "^18.5.0","@react-native-firebase/auth": "^18.5.0","@react-native-firebase/firestore": "^18.5.0","@react-native-firebase/storage": "^18.5.0","@react-native-google-signin/google-signin": "7.2.2","@react-native-twitter-signin/twitter-signin": "^1.2.0","@react-navigation/drawer": "^6.6.4","@react-navigation/native": "^6.1.8","@react-navigation/stack": "^6.3.18","axios": "^1.5.1","firebase": "^10.4.0","moment": "^2.29.4","react": "^18.2.0","react-is": "^18.2.0","react-native": "^0.72.5","react-native-dropdown-picker": "^5.4.6","react-native-fbsdk-next": "^12.1.1","react-native-gesture-handler": "^2.13.1","react-native-image-picker": "^7.0.0","react-native-inset-shadow": "^1.0.3","react-native-linear-gradient": "^2.8.3","react-native-media-controls": "^2.3.0","react-native-normalize": "^1.0.1","react-native-orientation-locker": "^1.6.0","react-native-progress": "^5.0.0","react-native-reanimated": "^3.5.4","react-native-safe-area-context": "^4.7.2","react-native-screens": "^3.25.0","react-native-shadow": "^1.2.2","react-native-slider": "^0.11.0","react-native-svg": "^13.14.0","react-native-svg-transformer": "^1.1.0","react-native-swiper-flatlist": "^3.2.3","react-native-timeline-flatlist": "^0.8.0","react-native-vector-icons": "^10.0.0","react-native-video": "^5.2.1","react-native-video-controls": "^2.8.1","react-native-video-player": "^0.14.0","react-native-webview": "^13.6.0","react-redux": "^8.1.3","redux": "^4.2.1","redux-thunk": "^2.4.2" },"devDependencies": {"@babel/core": "^7.20.0","@babel/preset-env": "^7.20.0","@babel/runtime": "^7.20.0","@react-native-community/eslint-config": "^3.2.0","@react-native/eslint-config": "^0.72.2","@react-native/metro-config": "^0.72.11","babel-jest": "^29.2.1","eslint": "^8.19.0","jest": "^29.2.1","metro-react-native-babel-preset": "0.76.8","prettier": "^2.4.1","react-test-renderer": "18.2.0" },"jest": {"preset": "react-native" }}- I am getting error when i am running
pnpm ios