Comments (6)
Could you please re-run the command adding the -debug
and -pull
flags and paste the output ?
The -pull
flag will update the docker image to the latest available that could fix the issue. It update the fyne-cli tool to the latest version (v1.4.2-0.20201127180716-f9f91c194737
)
from fyne-cross.
fyne-cross \
darwin \
-pull \
-debug \
-ldflags "-X code.example.net/examples/project-
01/version.Version=master -X code.example.net/examples/project-
01/version.Commit=9ec045de -X code.example.net/examples/project-
01/version.Date=2020-11-30T13:02:35+00:00 -X
code.example.net/examples/project-01/version.BuiltBy=479 -X
code.example.net/examples/project-
01/runner.Namespace=net.example.project-01" \
-cache "/builds/examples/project-01/cache" \
-app-id "net.example.project-01" \
-arch "amd64" \
-output "/builds/examples/project-01/project-01" \
"./cmd/project-01"
[i] Target: darwin/amd64
command.Context{Volume:volume.Volume{binDirHost:"/builds/examples/proje
ct-01/fyne-cross/bin", cacheDirHost:"/builds/examples/project-
01/cache", distDirHost:"/builds/examples/project-01/fyne-cross/dist",
tmpDirHost:"/builds/examples/project-01/fyne-cross/tmp",
workDirHost:"/builds/examples/project-01"}, Architecture:"amd64",
Env:[]string{"GOOS=darwin", "GOARCH=amd64", "CC=o32-clang"},
ID:"darwin-amd64", LdFlags:[]string{"-X
code.example.net/examples/project-01/version.Version=master -X
code.example.net/examples/project-01/version.Commit=9ec045de -X
code.example.net/examples/project-01/version.Date=2020-11-
30T13:02:35+00:00 -X code.example.net/examples/project-
01/version.BuiltBy=479 -X code.example.net/examples/project-
01/runner.Namespace=net.example.project-01"}, OS:"darwin",
Tags:[]string(nil), AppID:"net.example.project-01", CacheEnabled:true,
DockerImage:"fyneio/fyne-cross:base-latest",
Icon:"/builds/examples/project-01/Icon.png",
Output:"/builds/examples/project-01/project-01",
Package:"./cmd/project-01", StripDebug:true, Debug:true, Pull:true}
[i] Checking for a newer version of the docker image: fyneio/fyne-
cross:base-latest
/usr/bin/docker pull fyneio/fyne-cross:base-latest
base-latest: Pulling from fyneio/fyne-cross
d6ff36c9ec48: Pulling fs layer
c958d65b3090: Pulling fs layer
edaf0a6b092f: Pulling fs layer
80931cf68816: Pulling fs layer
813643441356: Pulling fs layer
799f41bb59c9: Pulling fs layer
16b5038bccc8: Pulling fs layer
77118513f5ea: Pulling fs layer
c44eaec32287: Pulling fs layer
431bae30c6ff: Pulling fs layer
d10476f69e59: Pulling fs layer
70d50d5591c2: Pulling fs layer
5f046f2e4d6e: Pulling fs layer
6edbb811b501: Pulling fs layer
e3470bce007e: Pulling fs layer
036fcbd6995f: Pulling fs layer
80931cf68816: Waiting
813643441356: Waiting
799f41bb59c9: Waiting
16b5038bccc8: Waiting
77118513f5ea: Waiting
c44eaec32287: Waiting
431bae30c6ff: Waiting
d10476f69e59: Waiting
70d50d5591c2: Waiting
5f046f2e4d6e: Waiting
6edbb811b501: Waiting
e3470bce007e: Waiting
036fcbd6995f: Waiting
c958d65b3090: Verifying Checksum
c958d65b3090: Download complete
edaf0a6b092f: Verifying Checksum
edaf0a6b092f: Download complete
d6ff36c9ec48: Verifying Checksum
d6ff36c9ec48: Download complete
80931cf68816: Verifying Checksum
80931cf68816: Download complete
d6ff36c9ec48: Pull complete
16b5038bccc8: Verifying Checksum
16b5038bccc8: Download complete
c958d65b3090: Pull complete
edaf0a6b092f: Pull complete
77118513f5ea: Verifying Checksum
77118513f5ea: Download complete
813643441356: Verifying Checksum
813643441356: Download complete
80931cf68816: Pull complete
813643441356: Pull complete
c44eaec32287: Verifying Checksum
c44eaec32287: Download complete
799f41bb59c9: Verifying Checksum
799f41bb59c9: Download complete
70d50d5591c2: Verifying Checksum
70d50d5591c2: Download complete
5f046f2e4d6e: Verifying Checksum
5f046f2e4d6e: Download complete
6edbb811b501: Download complete
799f41bb59c9: Pull complete
16b5038bccc8: Pull complete
77118513f5ea: Pull complete
c44eaec32287: Pull complete
431bae30c6ff: Verifying Checksum
431bae30c6ff: Download complete
036fcbd6995f: Verifying Checksum
036fcbd6995f: Download complete
e3470bce007e: Verifying Checksum
e3470bce007e: Download complete
431bae30c6ff: Pull complete
d10476f69e59: Verifying Checksum
d10476f69e59: Download complete
d10476f69e59: Pull complete
70d50d5591c2: Pull complete
5f046f2e4d6e: Pull complete
6edbb811b501: Pull complete
e3470bce007e: Pull complete
036fcbd6995f: Pull complete
Digest:
sha256:cd4172af9f81455585dd2e7534b22ef6e65396920b7dfba129026208b7400a9a
Status: Downloaded newer image for fyneio/fyne-cross:base-latest
docker.io/fyneio/fyne-cross:base-latest
[✓] Image is up to date
[i] Cleaning target directories...
[✓] "temp" dir cleaned: /builds/examples/project-01/fyne-
cross/tmp/darwin-amd64
[✓] "bin" dir cleaned: /builds/examples/project-01/fyne-
cross/bin/darwin-amd64
[✓] "dist" dir cleaned: /builds/examples/project-01/fyne-
cross/dist/darwin-amd64
[i] Checking for go.mod: /builds/examples/project-01/go.mod
[✓] go.mod found
[i] Building binary...
/usr/bin/docker run --rm -t -w /app -v /builds/examples/project-01:/app
-v /builds/examples/project-01/cache:/go -e CGO_ENABLED=1 -e
GOCACHE=/go/go-build -e GOOS=darwin -e GOARCH=amd64 -e CC=o32-clang -e
fyne_uid=0 fyneio/fyne-cross:base-latest go build -ldflags '-X
code.example.net/examples/project-01/version.Version=master -X
code.example.net/examples/project-01/version.Commit=9ec045de -X
code.example.net/examples/project-01/version.Date=2020-11-
30T13:02:35+00:00 -X code.example.net/examples/project-
01/version.BuiltBy=479 -X code.example.net/examples/project-
01/runner.Namespace=net.example.project-01 -w -s' -o /app/fyne-
cross/bin/darwin-amd64//builds/examples/project-01/project-01 -v
./cmd/project-01
go: downloading fyne.io/fyne v1.4.1
go: extracting fyne.io/fyne v1.4.1
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/srwiley/rasterx v0.0.0-20200120212402-
85cb7272f5e9
go: downloading golang.org/x/image v0.0.0-20200430140353-33d19683fad8
go: downloading github.com/goki/freetype v0.0.0-20181231101311-
fa8a33aabaff
go: extracting github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/srwiley/oksvg v0.0.0-20200311192757-
870daf9aa564
go: downloading golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666
go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200625191551-
73d3c3675aa3
go: downloading github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
go: extracting github.com/srwiley/rasterx v0.0.0-20200120212402-
85cb7272f5e9
go: extracting github.com/srwiley/oksvg v0.0.0-20200311192757-
870daf9aa564
go: extracting github.com/goki/freetype v0.0.0-20181231101311-
fa8a33aabaff
go: downloading golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
go: extracting github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200625191551-
73d3c3675aa3
go: extracting golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666
go: extracting golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
go: downloading golang.org/x/text v0.3.2
go: extracting github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
go: extracting golang.org/x/image v0.0.0-20200430140353-33d19683fad8
go: extracting golang.org/x/text v0.3.2
go: finding fyne.io/fyne v1.4.1
go: finding github.com/fsnotify/fsnotify v1.4.9
go: finding github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200625191551-
73d3c3675aa3
go: finding github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
go: finding github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564
go: finding golang.org/x/image v0.0.0-20200430140353-33d19683fad8
go: finding github.com/srwiley/rasterx v0.0.0-20200120212402-
85cb7272f5e9
go: finding github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
go: finding golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
go: finding golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666
go: finding golang.org/x/text v0.3.2
internal/cpu
runtime/internal/atomic
runtime/internal/sys
runtime/internal/math
internal/bytealg
math/bits
math
runtime
unicode/utf8
internal/race
sync/atomic
unicode
internal/testlog
image/color
container/list
crypto/internal/subtle
crypto/subtle
vendor/golang.org/x/crypto/cryptobyte/asn1
internal/nettrace
runtime/cgo
vendor/golang.org/x/crypto/internal/subtle
vendor/golang.org/x/crypto/curve25519
encoding
unicode/utf16
golang.org/x/image/colornames
golang.org/x/net/html/atom
golang.org/x/text/encoding/internal/identifier
golang.org/x/text/internal/utf8internal
golang.org/x/image/math/f64
golang.org/x/sys/internal/unsafeheader
code.example.net/examples/project-01/version
internal/reflectlite
sync
math/rand
internal/singleflight
errors
sort
strconv
io
internal/oserror
syscall
reflect
time
internal/fmtsort
internal/poll
internal/syscall/execenv
internal/syscall/unix
bytes
os
bufio
image
fmt
strings
log
compress/flate
path/filepath
io/ioutil
encoding/binary
hash
hash/crc32
context
compress/gzip
crypto/cipher
math/big
crypto/aes
crypto
crypto/des
crypto/internal/randutil
crypto/sha512
crypto/ed25519/internal/edwards25519
crypto/hmac
crypto/md5
crypto/rand
crypto/elliptic
encoding/asn1
crypto/ed25519
crypto/rc4
crypto/ecdsa
crypto/rsa
crypto/sha1
crypto/sha256
crypto/dsa
encoding/hex
crypto/x509/pkix
encoding/base64
vendor/golang.org/x/crypto/cryptobyte
encoding/pem
vendor/golang.org/x/net/dns/dnsmessage
vendor/golang.org/x/net/route
net/url
net
os/exec
vendor/golang.org/x/crypto/internal/chacha20
vendor/golang.org/x/crypto/poly1305
vendor/golang.org/x/sys/cpu
vendor/golang.org/x/crypto/chacha20poly1305
vendor/golang.org/x/crypto/hkdf
vendor/golang.org/x/text/transform
vendor/golang.org/x/text/unicode/bidi
vendor/golang.org/x/text/secure/bidirule
vendor/golang.org/x/text/unicode/norm
vendor/golang.org/x/net/idna
vendor/golang.org/x/net/http2/hpack
mime
mime/quotedprintable
net/http/internal
path
encoding/json
image/internal/imageutil
image/draw
encoding/xml
crypto/x509
net/textproto
vendor/golang.org/x/net/http/httpguts
vendor/golang.org/x/net/http/httpproxy
mime/multipart
golang.org/x/image/math/fixed
github.com/goki/freetype/raster
golang.org/x/image/font
github.com/goki/freetype/truetype
golang.org/x/image/vector
github.com/srwiley/rasterx
crypto/tls
golang.org/x/net/html
golang.org/x/text/transform
golang.org/x/text/encoding
golang.org/x/text/encoding/internal
golang.org/x/text/encoding/charmap
net/http/httptrace
net/http
golang.org/x/text/encoding/japanese
golang.org/x/text/encoding/korean
golang.org/x/text/encoding/simplifiedchinese
golang.org/x/text/encoding/traditionalchinese
golang.org/x/text/runes
golang.org/x/text/encoding/unicode
golang.org/x/text/internal/tag
golang.org/x/text/internal/language
golang.org/x/text/internal/language/compact
golang.org/x/text/language
golang.org/x/text/encoding/htmlindex
golang.org/x/net/html/charset
github.com/srwiley/oksvg
fyne.io/fyne
golang.org/x/image/draw
fyne.io/fyne/internal/cache
fyne.io/fyne/internal/driver
fyne.io/fyne/internal/app
fyne.io/fyne/canvas
fyne.io/fyne/driver/desktop
fyne.io/fyne/theme
image/jpeg
hash/adler32
compress/zlib
image/png
github.com/go-gl/gl/v3.2-core/gl
fyne.io/fyne/internal/widget
fyne.io/fyne/internal
fyne.io/fyne/internal/painter
github.com/goki/freetype
fyne.io/fyne/layout
fyne.io/fyne/storage
fyne.io/fyne/driver/mobile
fyne.io/fyne/widget
github.com/go-gl/glfw/v3.3/glfw
fyne.io/fyne/internal/painter/gl
golang.org/x/sys/unix
github.com/fsnotify/fsnotify
fyne.io/fyne/container
code.example.net/examples/project-01/terminal
code.example.net/examples/project-01/runner
fyne.io/fyne/internal/driver/glfw
fyne.io/fyne/app
code.example.net/examples/project-01/cmd/project-01
[✓] Binary: /builds/examples/project-01/fyne-cross/bin/darwin-
amd64/builds/examples/project-01/project-01
[i] Packaging app...
/usr/bin/docker run --rm -t -w /app -v /builds/examples/project-01:/app
-e CGO_ENABLED=1 -e GOCACHE=/go/go-build -e fyne_uid=0 fyneio/fyne-
cross:base-latest /usr/local/bin/fyne version
fyne cli version v1.4.2-0.20201127180716-f9f91c194737
/usr/bin/docker run --rm -t -w /app/fyne-cross/tmp/darwin-amd64 -v
/builds/examples/project-01:/app -v /builds/examples/project-
01/cache:/go -e CGO_ENABLED=1 -e GOCACHE=/go/go-build -e fyne_uid=0
fyneio/fyne-cross:base-latest /usr/local/bin/fyne package -os darwin
-name /builds/examples/project-01/project-01 -icon /app/fyne-
cross/tmp/darwin-amd64/Icon.png -appID net.example.project-01
-executable /app/fyne-cross/bin/darwin-amd64//builds/examples/project-
01/project-01
2020/11/30 13:05:04 Fyne error: Failed to create dirrectory
2020/11/30 13:05:04 Cause: mkdir /app/fyne-cross/tmp/darwin-
amd64/builds/examples/project-01/project-01.app: no such file or
directory
2020/11/30 13:05:04 At:
/go/pkg/mod/fyne.io/[email protected]/cmd/fyne/
internal/util/file.go:36
2020/11/30 13:05:04 Fyne error: Failed to create dirrectory
2020/11/30 13:05:04 Cause: mkdir /app/fyne-cross/tmp/darwin-
amd64/builds/examples/project-01/project-01.app/Contents: no such file
or directory
2020/11/30 13:05:04 At:
/go/pkg/mod/fyne.io/[email protected]/cmd/fyne/
internal/util/file.go:36
Failed to write plist template: invalid argument
[✗] could not package the Fyne app: could not package the Fyne app:
exit status 1
from fyne-cross.
looking further into the code, i think the problem lies with the -name
parameter, which fyne-cross defines as an absolute path (it reuses the output path in its entirety) instead of just a base filename.
from fyne-cross.
@UiP9AV6Y good catch. You are right, it is related to the absolute path specified for the fyne-cross's output
flag.
The objective of that flag is to specify an alternative name for the package. the package will be saved under the fyne-cross/dist folder.
Setting output
to project-01
or removing it should allow to compile.
from fyne-cross.
can confirm. using a filename without any directories for the -output
parameter does build and package the app. in my case i simply copied the desired files afterwards from the fyne-cross working directory to the directory i wanted, which is why i specified an absolute in the first place.
from fyne-cross.
@UiP9AV6Y the output
flag has been deprecated in develop in favour of name
. Additionally a check on the flag has been added to not allow a path for the output
flag.
I hope that will improve the UX.
Going to close the issue but please feel free to reopen if you have additional feedback.
from fyne-cross.
Related Issues (20)
- Error "Listeners: operation not supported" on MacOS M1 HOT 10
- permission denied when setting Icon compiling from Linux to Windows HOT 11
- could not clean the "bin" dir HOT 2
- Cross compile tests
- Can't build Android app on ARM macOS: image platform (linux/amd64) does not match the expected platform (linux/arm64) HOT 4
- Compile fyne application for Windows operating system, gcc_linux-amd64. c: 63:2: error: unknown type name 'sigset_t' HOT 1
- Can not build on mac (arm) using vanilla docker desktop HOT 10
- "flag provided but not defined: -profile" when trying to build a MacOS release application HOT 8
- linux cross-compile problem HOT 4
- Use goreleaser to build fyne-cross
- Build for MacOS (arm64,amd64) not working HOT 4
- Linux Building Darwin Error HOT 5
- Customize `-ldflags` HOT 2
- Add necessary secret to GitHub Actions to run iOS build HOT 5
- Add a secret password to enable testing for darwin on windows and linux HOT 1
- Enable OSX compilation in CI HOT 6
- `-cache` doesn't work with relative path HOT 2
- Failed to inject metadata init file, omitting metadata HOT 3
- Release next version HOT 1
- darwin complies windows application failed with 'could not package the Fyne app: exit status 1' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fyne-cross.