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
+11.4k CodeIgniter : Import Linkedin data
+21k Golang : Clean up null characters from input data
+16.8k Golang : Fix cannot convert buffer (type *bytes.Buffer) to type string error
+10.5k Golang : Interfacing with PayPal's IPN(Instant Payment Notification) example
+7.4k Golang : How to handle file size larger than available memory panic issue
+20.9k Golang : For loop continue,break and range
+6.4k Golang : Convert an executable file into []byte example
+6.5k Golang : How to determine if request or crawl is from Google robots
+5.9k Golang : Experimenting with the Rejang script
+13.6k Golang : How to determine if a year is leap year?
+6.3k Golang : Break string into a slice of characters example
+24.4k Golang : Time slice or date sort and reverse sort example