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.1k Linux/Unix/MacOSX : Find out which application is listening to port 80 or use which IP version
+3.7k Linux : sudo yum updates not working
+32.5k Golang : Call a function after some delay(time.Sleep and Tick)
+6.3k Golang : Calculate how many weeks left to go in a given year
+8k Golang : Serving HTTP and Websocket from different ports in a program example
+4.7k Javascript : How to refresh page with JQuery ?
+5.7k PHP : Shuffle to display different content or advertisement
+12.2k Golang : reCAPTCHA example
+13.4k Golang : Get URI segments by number and assign as variable example
+12.1k Golang : Read from buffered reader until specific number of bytes
+10.1k Golang : Find age or leap age from date of birth example
+4.4k Unix/Linux : How to archive and compress entire directory ?