I'm trying to run a Gomobile test on the terminal here is my code
I have done like instruction from https://www.sitepoint.com/ios-and-android-programming-with-go/
go get golang.org/x/mobile/cmd/gomobile
gomobile init
gomobile build -target=ios golang.org/x/mobile/example/basic
Which gives me the error:
gomobile: go build -tags ios -ldflags=-w -o=/var/folders/4q/2vddqkyd3rv4tvzfbnsssbkm0000gn/T/gomobile-work-977299939/amd64 golang.org/x/mobile/example/basic failed: exit status 2
# golang.org/x/mobile/example/basic
/Users/ibct/.gvm/gos/go1.9.6/pkg/tool/darwin_amd64/link: running /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed: exit status 1
ld: building for iOS simulator, but linking in object file built for OSX, file '/var/folders/4q/2vddqkyd3rv4tvzfbnsssbkm0000gn/T/go-link-176961670/000003.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Related
I m using starcore_for_ios to run python scripts.
What i m doing is:
flutter clean
export STARCORE_PATH='/Users/brijeshlakkad'
export STARCORE_PYTHONVERSION='3.6'
export STARCORE_PYTHONLIBRARY='star_python36,python3.6m'
flutter build ios --no-codesign
and i am getting this error:
when i run flutter build ios --no-codesign
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
ld: warning: directory not found for option
'-L/Users/brijeshlakkad/starcore_for_ios/python.files/python-3.6'
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
ld: warning: directory not found for option
'-L/Users/brijeshlakkad/starcore_for_ios/python.files/python-3.6'
ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Encountered error while building for device.
2.9s
Python version: _3.6.5_1_
flutter version: 1.0.0
What i have done:
1. Build Active Architecture Only : YES
and
2. Targets >> Build Settings >> Linking >> Other Linker Flags: $(inherited)
As you can see error below
Receiving the following error when doing a
tns run -v ios
(mac is running High Sierra and xcode is current, certificates are in place, etc). any assistance would be greatly appreciated. Here the error:
`Building project...
Xcode build...
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
ld: framework not found FileProvider for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: framework not found FileProvider for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
error: the following command failed with exit code 1 but produced no further output
Ld build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Objects-normal/x86_64/HelloWorld normal x86_64
** BUILD FAILED **
Unable to apply changes on device: B71912B9-B650-4EBF-AB43-3383136CB95F. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/XXX/temp/NATIVE/HelloWorld/hooks/after-watch/nativescript-dev-webpack.js`
run tns build ios --clean --log trace first ,if the log trace is related to some plugin, use whose latest version in the package.json file , run npm install, than run tns build ios --clean --log trace again.
if it not work, run tns prepare ios --release and open {app-name}/platforms/ios/{app-name}.xcworkspace file with xcode , try run it, xcode will tell you where is the problem.
I have create one application in which I try to archive the application, it show me following error but when I run the application then it will work perfectly.
ld: library not found for -lz
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The error coming while build the application with this
"ld: file too small (length=0) file
'/Users/harjitsingh/Library/Developer/Xcode/DerivedData/MKSwiftBasic-beooqvoqmmdzlqffdydibcpuweln/Build/Intermediates/MKSwiftBasic.build/Debug-iphoneos/MKSwiftBasic.build/Objects-normal/armv7/ViewController.o'
for architecture armv7 clang: error: linker command failed with exit
code 1 (use -v to see invocation)"
I'm following the tutorial recommended on the Frank-Cucumber website (http://blog.thepete.net/blog/2012/06/24/writing-your-first-frank-test/), but once executing frank build, the build fails saying:
The following build commands failed:
Ld Frank/frankified_build/2012\ Olympics.app/2012\ Olympics normal i386
(1 failure)
This clang error is present around the previous ld call:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using XCode 4.6.3, I have the command line tools installed, and I'm running the example application taken from GitHub.
What could be wrong? Any ideas?
Seems like using sudo frank build --arch armv7s fixes it.