info Found Xcode workspace "NativeModuleWorkshop.xcworkspace"
info Building (using "xcodebuild -workspace NativeModuleWorkshop.xcworkspace -configuration Debug -scheme NativeModuleWorkshop -destination id=E053A5E4-D7B1-4AD1-9310-C1A6F203C9F9")
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening NativeModuleWorkshop.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace NativeModuleWorkshop.xcworkspace -configuration Debug -scheme NativeModuleWorkshop -destination id=E053A5E4-D7B1-4AD1-9310-C1A6F203C9F9
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
note: Using new build system
note: Planning
Analyze workspace
Create build description
Build description signature: 5ae9e826f1e1173f8ecf1930e1e5ae32
Build description path: /Users/home/Library/Developer/Xcode/DerivedData/NativeModuleWorkshop-dodskwjbdyfnuggpmvotkyamkreg/Build/Intermediates.noindex/XCBuildData/5ae9e826f1e1173f8ecf1930e1e5ae32-desc.xcbuild
note: Build preparation complete
note: Building targets in dependency order
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the NativeModuleWorkshop editor. (in target 'NativeModuleWorkshop' from project 'NativeModuleWorkshop')
/Users/home/NativeModuleWorkshop/ios/NativeModuleWorkshop.xcodeproj: error: The linked library 'libPods-NativeModuleWorkshop.a' is missing one or more architectures required by this target: x86_64. (in target 'NativeModuleWorkshop' from project 'NativeModuleWorkshop')
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65
Check your build error ..
I get error "/Users/home/NativeModuleWorkshop/ios/NativeModuleWorkshop.xcodeproj: error: The linked library 'libPods-NativeModuleWorkshop.a' is missing one or more architectures required by this target: x86_64. (in target 'NativeModuleWorkshop' from project 'NativeModuleWorkshop')" in last pharse
Step 1. Open React-native folder using Xcode
Click "Open a project or file"
Select "ios"
and then cllck open..
Step 2. Chang i386 to arm 64
Change i386 to arm 64 at "Any IOS Simulator SDK"
You have to save project
Clean Project
[ Command + Shift +K]
Project Build
[ Command+ B]
Step 3. Remove code and replace in Podfile
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
Try Build and It's Wrok Successfully
댓글