Closed Nibycz closed 2 years ago
Have you tried adding arm64
in Excluded Architecture? I found this in stackoverflow
Yes, i tried it, thanks for it. (i already tested it but i didnt build the App through XCode)
im using atm RN 0.68.2. I added the arm64
in XCode and i can run the App through XCode.
I never use XCode to build the App im doing it from the command line.
This doesnt work. There i get the error.
2022-07-06 12:30:47.273 xcodebuild[15468:735081] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-06 12:30:47.274 xcodebuild[15468:735081] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
2022-07-06 12:30:47.273 xcodebuild[15468:735081] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2022-07-06 12:30:47.274 xcodebuild[15468:735081] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore ** BUILD FAILED **
I don't think this is the error caused build failed. I just ran success and had the same log as your.
success Successfully built the app
2022-07-06 17:49:13.507 xcodebuild[12840:83024] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-06 17:49:13.508 xcodebuild[12840:83024] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
So, i tried it with RN 0.69.1 i changed build active architecture only to YES and it works with XCode. unfortunately not through command line.
here the log:
The following build commands failed:
CompileC /Users/emrah/Library/Developer/Xcode/DerivedData/XXX-eulyicccbjkthhgqrgfrobeqoyfq/Build/Intermediates.noindex/XXX.build/Debug-iphonesimulator/xxx.build/Objects-normal/arm64/AppDelegate.o /Users/emrah/projects/xxx-app/ios/xxx/AppDelegate.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'xxx' from project 'xxx')
(1 failure)
I see you have AppDelegate.m in log. I think you deleted it but forgot to replace it with the .mm file in .xcodeproj file. Open Xcode replace it.
EDIT: Wait, why does it work with Xcode, but not command line?
So, i removed the AppDelegate.m
in the .xcodeworkspace (app does not build in xcodeproj).
in my VSC i can see that i have the .mm File but not in my .xcodeworkspace
Well, i dont know why my App builds with xcode and not with commandline. My CommandLineTools are the same version as XCode
EDIT: I have the AppDelegate.mm but this file is not shown in my .xcodeworkspace only in VSC
So, i changed the .m file to .mm and now i can run the app through terminal. Now it doesnt work in XCode
So, i removed the
AppDelegate.m
in the .xcodeworkspace (app does not build in xcodeproj).
I mean when you open .xcworkspace to edit something, .xcodeproj file is changed eventually
Now it doesnt work in XCode
You have to open Xcode and dive into it to fix it yourself. But if you only run project via command line, you can ignore it. I'm just not sure about build release process is successful or not.
Well, it works now. I had a Problem with my mainjs bundle but i fixed it. The app is working now from cmd and XCode. I did the same process which u said above again with the AppDelegate and now it works.
Thanks for your help!
New Version
0.68.2 / 0.69.1
Old Version
0.67.2
Build Target(s)
iPhone 12 Pro
Output of
react-native info
System: OS: macOS 12.4 CPU: (8) arm64 Apple M1 Memory: 137.78 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.15.0 - /usr/local/bin/node Yarn: 1.22.19 - ~/projects/XXXX-XXX/node_modules/.bin/yarn npm: 8.6.0 - /opt/homebrew/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 29, 30, 31 Build Tools: 28.0.3, 29.0.2, 30.0.2, 31.0.0 System Images: android-29 | Google Play ARM 64 v8a, android-31 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 11.0.12 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Issue and Reproduction Steps
Hello, i want to upgrade my React Native Project to
0.69.1 / 0.68.2
Doesnt matter if i use0.68.2
or0.69.1
im getting the same Problems.Im facing the same error in both Versions. i checked XCode and there i got this error:
My package.json: (in this case i didnt upgrade all deps. Even if i upgrade them i got the same Error.)
I tried different XCode Version - Same Problem