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
+6.4k PHP : Get client IP address
+10.8k Golang : Get local time and equivalent time in different time zone
+14.2k Golang : Google Drive API upload and rename example
+52.1k Golang : How to get time in milliseconds?
+5.1k JQuery : Calling a function inside Jquery(document) block
+11.8k Golang : Simple file scaning and remove virus example
+11.9k How to tell if a binary(executable) file or web application is built with Golang?
+6.5k Javascript : Generate random key with specific length
+11.4k Golang : How to pipe input data to executing child process?
+37.9k Golang : Comparing date or timestamp
+21.9k Golang : Encrypt and decrypt data with TripleDES
+8.1k Golang Hello World Example