Golang : Gomobile init produce "iphoneos" cannot be located error
Problem :
Golang mobile packages provide support for mobile devices and build tools that allows Golang developers to develop application for Android and iOS platform. While setting up and executing gomobile init
you get these error messages :
./gomobile init
./gomobile: xcrun --show-sdk-path: exit status 1
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
Solution :
You are attempting to run gomobile
on OS X and you will need to have Xcode Command Line Tools installed first. After installing Xcode, make sure you run Xcode and accept the terms and conditions before executing gomobile init
command. Otherwise, you will get this error message :
./gomobile: xcrun --find: exit status 69
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+13.4k Golang : Get constant name from value
+12.9k Swift : Convert (cast) Int to String ?
+13.1k Golang : How to get a user home directory path?
+40k Golang : UDP client server read write example
+9.3k Golang : Terminate-stay-resident or daemonize your program?
+11k Golang : Fix go.exe is not compatible with the version of Windows you're running
+7.1k CloudFlare : Another way to get visitor's real IP address
+11.1k Golang : How to determine a prime number?
+6.8k Golang : Normalize email to prevent multiple signups example
+11.2k Golang : Byte format example
+6.3k Golang : Test input string for unicode example
+8.2k Golang : Configure Apache and NGINX to access your Go service example