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
+4.7k Linux : sudo yum updates not working
+5.8k CodeIgniter/PHP : Remove empty lines above RSS or ATOM xml tag
+5.9k Golang : List all packages and search for certain package
+32.8k Golang : Regular Expression for alphanumeric and underscore
+40.7k Golang : Convert to io.ReadSeeker type
+8.3k Golang : Find relative luminance or color brightness
+33.1k Golang : How to check if a date is within certain range?
+5.4k Golang : Intercept, inject and replay HTTP traffics from web server
+28.1k Golang : Move file to another directory
+15.7k Golang : rune literal not terminated error
+36.8k Golang : Display float in 2 decimal points and rounding up or down
+10.7k Golang : Simple File Server