Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
Going over the contribution guide now. Tracking with: https://github.com/golang/go/issues/22402 Thank you for your help! On Monday, October 23, 2017 at 1:01:59 PM UTC-4, Elias Naur wrote: > > There's a guide at https://golang.org/doc/contribute.html to help > submitting a change to the code revie

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
There's a guide at https://golang.org/doc/contribute.html to help submitting a change to the code review tool used by Go. Raising an issue is great, but an actual change is the fastest way forward in this case (iOS is a fringe OS in Go). With a CL, the change will be reviewed by someone who knows t

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
Maybe? I would appreciate your help in this matter. What is the quickest way to confirm that the change makes sense, doesn't break previous ios related stuff, and get it into the next go release? I don't want to hold things up as I google "change list" with various combinations of "golang", "gi

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
Fantastic! Would you like to send this patch as a change list? - elias On Monday, October 23, 2017 at 6:24:05 PM UTC+2, pru...@gmail.com wrote: > > Making the following change fixes the original problem and allows my ios > apps to be uploaded: > > diff --git a/src/cmd/link/internal/ld/lib.go >

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
Making the following change fixes the original problem and allows my ios apps to be uploaded: diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go index bd3abbba0a..45642e8ad7 100644 --- a/src/cmd/link/internal/ld/lib.go +++ b/src/cmd/link/internal/ld/lib.go @@ -1105,7

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
On the off chance that it might be useful, here is some information on the bind example that validated: ~/Library/Developer/Xcode/Archives/2017-10-23/bind 2017-10-23, 11.24 AM.xcarchive/Products/Applications/bind.app: size -x -l -m bind Segment __PAGEZERO: 0x1 (vmaddr 0x0 fileoff 0)

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
It does change things. description length:88662 ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "bios.app" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(machine code) and armv7(machine code) and armv7(machine code) and armv7(machine co

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
Great, thank you! I know very little about gomobile build, but I noticed that gomobile bind uses the -buildmode=c-archive flag to go build while gomobile build doesn't. Does the following (completely untested) patch make any difference: diff --git a/cmd/gomobile/build_iosapp.go b/cmd/gomobile/buil

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
Ok thank you!. Bind does validate after setting ENABLE_BITCODE to NO in the build settings. On Monday, October 23, 2017 at 11:03:51 AM UTC-4, Elias Naur wrote: > > To successfully build the bind example you need to disable bitcode (and > import the framework as you did). Sorry. > > - elias > > D

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
To successfully build the bind example you need to disable bitcode (and import the framework as you did). Sorry. - elias Den man. 23. okt. 2017 17.00 skrev : > Trying bind this time. > Not able to build in Xcode with bind example. Xcode can't find the Hello > module when following the instructio

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
Trying bind this time. Not able to build in Xcode with bind example. Xcode can't find the Hello module when following the instructions. Dropping the hello.framework into the ios folder seems to help but leads to the following linker error: ld: '/Users/rust/code/src/golang.org/x/mobile/example/b

Re: [go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread Elias Naur
On Mon, Oct 23, 2017 at 2:09 PM wrote: > I reproduced the problem using the gomobile bind example with the > following code changes. > > diff --git a/cmd/gomobile/build_iosapp.go b/cmd/gomobile/build_iosapp.go > > index 0b2a923..8480790 100644 > > --- a/cmd/gomobile/build_iosapp.go > > +++ b/cmd/

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
Yes the error happens with tip. go version devel +006bc57095 Sun Oct 22 15:50:50 2017 + darwin/amd64 On Sunday, October 22, 2017 at 4:32:44 AM UTC-4, Elias Naur wrote: > > Another thing: Is the problem present in go tip (to become 1.10) as well? > And finally, can you reproduce the problem

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
Here is the error text in case the png doesn't display. description length:93594 ERROR ITMS-90503: "Invalid Bundle. Apps that have 'arm64' in the list of UIRequiredDeviceCapabilities in Info.plist must only contain the arm64 slice." ERROR ITMS-90209: "Invalid Segment Alignment. The app binary

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
I reproduced the problem using the gomobile bind example with the following code changes. diff --git a/cmd/gomobile/build_iosapp.go b/cmd/gomobile/build_iosapp.go index 0b2a923..8480790 100644 --- a/cmd/gomobile/build_iosapp.go +++ b/cmd/gomobile/build_iosapp.go @@ -31,7 +31,7 @@ func goIOSBu

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-23 Thread pruest
go1.9.1 xcode 9.0.1 macOS 10.13. On Sunday, October 22, 2017 at 4:26:15 AM UTC-4, Elias Naur wrote: > > Hi Paul, > > What version of Go, Xcode an macOS are you using? I'd like to help you > debug the problem, but Xcode doesn't seem to allow me to run the validation > of an archived build without

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-22 Thread Elias Naur
Another thing: Is the problem present in go tip (to become 1.10) as well? And finally, can you reproduce the problem with the simple golang.org/x/mobile/example/bind example? - elias On Sunday, October 22, 2017 at 10:26:15 AM UTC+2, Elias Naur wrote: > > Hi Paul, > > What version of Go, Xcode

[go-nuts] Re: Invalid Segment Alignment when pushing to iTunesConnect

2017-10-22 Thread Elias Naur
Hi Paul, What version of Go, Xcode an macOS are you using? I'd like to help you debug the problem, but Xcode doesn't seem to allow me to run the validation of an archived build without a developer account. - elias On Sunday, October 22, 2017 at 6:34:15 AM UTC+2, pru...@gmail.com wrote: > > I'