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
+5.8k Restart Apache or Nginx web server without password prompt
+15k Golang : How to extract links from web page ?
+12.5k Golang : Activate web camera and broadcast out base64 encoded images
+14.3k Golang : invalid character ',' looking for beginning of value
+6.5k Golang : What fmt.Println() can do and println() cannot do
+7k Golang : Append and add item in slice
+9.9k Golang : Read until certain character to break for loop
+15.6k Golang : Get input from keyboard
+9.2k Golang : How to profile or log time spend on execution?
+12.6k Golang : How to determine if a year is leap year?
+26.4k Golang : Move file to another directory
+10.6k Golang : Convert(cast) float to int