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
+6k Facebook : How to force facebook to scrape latest URL link data?
+6.8k Golang : Check if password length meet the requirement
+17.5k Golang : Check if IP address is version 4 or 6
+6.6k Golang : Calculate diameter, circumference, area, sphere surface and volume
+14.5k Golang : Parsing or breaking down URL
+20.3k Golang : Convert seconds to human readable time format example
+16k Golang : How to login and logout with JWT example
+15.7k Golang : Validate hostname
+11.7k Golang : Fuzzy string search or approximate string matching example
+13.8k Golang : Get user input until a command or receive a word to stop
+5.3k JavaScript/JQuery : Redirect page examples
+8.3k Golang : Get final or effective URL with Request.URL example