dapp-scaffold-react-native
dapp-scaffold-react-native copied to clipboard
Build error on ios
Trying to run this app in iOS Simulator on Apple M1
Steps:
- cloned latest project
yarncd ios && pod installcd ..yarn start- in another terminal in same folder,
yarn ios
Error log:
yarn ios 1 ↵
yarn run v1.22.17
$ react-native run-ios
info Found Xcode workspace "SolanaDappScaffold.xcworkspace"
info Building (using "xcodebuild -workspace SolanaDappScaffold.xcworkspace -configuration Debug -scheme SolanaDappScaffold -destination id=1480924F-61F5-4DFC-8454-3D86A161CDA0")
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 SolanaDappScaffold.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace SolanaDappScaffold.xcworkspace -configuration Debug -scheme SolanaDappScaffold -destination id=1480924F-61F5-4DFC-8454-3D86A161CDA0
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
note: Using new build system
note: Planning
Analyze workspace
Create build description
Build description signature: 67a3c5b7befd3ab50550e5f6730fa56b
Build description path: /Users/ritvij14/Library/Developer/Xcode/DerivedData/SolanaDappScaffold-coaxfqxwrjfwyrgwnqwkjzppxamr/Build/Intermediates.noindex/XCBuildData/67a3c5b7befd3ab50550e5f6730fa56b-desc.xcbuild
note: Build preparation complete
note: Building targets in dependency order
/Users/ritvij14/Desktop/Projects/dapp-scaffold-react-native/ios/SolanaDappScaffold.xcodeproj: error: The linked library 'libPods-SolanaDappScaffold.a' is missing one or more architectures required by this target: arm64. (in target 'SolanaDappScaffold' from project 'SolanaDappScaffold')
2022-09-10 09:43:16.515 xcodebuild[16103:96009] 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-09-10 09:43:16.515 xcodebuild[16103:96009] 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 **
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Same!
The important part is here:
2022-09-10 09:43:16.515 xcodebuild[16103:96009] 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-09-10 09:43:16.515 xcodebuild[16103:96009] 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
I found this solution worked for me.
# Reinstall Xcode tools
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
# Reset the project
git clean -dfx .
# Reinstall dependencies and build
yarn
(cd ios && pod install)
yarn ios
Hey @steveluscher tried this, didn't work for me
Keep trying! Google around for that watchOS error message above and you'll find many people talking about various solutions. It seems that it all comes down to a corrupt/incomplete install of Xcode.