~eliasnaur/gio

8 3

trying to make an iOS GIO app problem

Details
Message ID
<BF954ABC-7F96-4EBD-A5F6-EC42F187E57B@meessen.net>
DKIM signature
pass
Download raw message
Hello

it was a long way, but I manage to create an Hello World app with Xcode and install it on my phone. I didn’t need to subscribe to the apple developper program to achieve that. 

I then tried to compile the gio gophers example to install it on my phone. This is the error message I get. 

gogio: sign: no valid provisioning profile found for bundle id « xxxxx.net.meessen.giotest" among [xxxxx.net.meessen.giotest]

The bundle id is the one used for the hello world test. 


Bien cordialement,
Christophe Meessen
Details
Message ID
<CAFcc3FThxsC182pOJdtjbio4WAuMNnS+3zQi7mUD9iVMOa9ZtQ@mail.gmail.com>
In-Reply-To
<BF954ABC-7F96-4EBD-A5F6-EC42F187E57B@meessen.net> (view parent)
DKIM signature
pass
Download raw message
> it was a long way, but I manage to create an Hello World app with Xcode and install it on my phone. I didn’t need to subscribe to the apple developper program to achieve that.

Excellent!

> I then tried to compile the gio gophers example to install it on my phone. This is the error message I get.
>
> gogio: sign: no valid provisioning profile found for bundle id « xxxxx.net.meessen.giotest" among [xxxxx.net.meessen.giotest]

Hmm. This error reads to me as "I couldn't find this string within
this list of one string". I do not know off the top of my head why
this isn't working. I would recommend attaching a debugger to gogio
and watching it try to choose the provisioning profile. You will
probably be able to determine why it doesn't recognize that profile by
seeing where and how it concludes that no profiles match.

I also note that in your error, the beginning and end quotes of the
bundle ID aren't the same kind of quotation mark, and that there
appears to be a space before xxxxx. If you are inserting the bundle id
via some kind of script, make sure that it isn't inserting a space
within that id.

Cheers,
Chris
Details
Message ID
<14E6F6BD-EB86-43D9-B7F8-3344611FC644@meessen.net>
In-Reply-To
<CAFcc3FThxsC182pOJdtjbio4WAuMNnS+3zQi7mUD9iVMOa9ZtQ@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
Hello,

I made some progress. I now can compile the Gophers example and generate the .iap file.
Unfortunately I can’t download the .iap file to the device using Xcode. 

This is the error message I get:   

“gophers” does not contain an application bundle, so it cannot be installed on Corrida
 
I looked inside the the .iap file and there is a gophers.app directory that contains a Gophers binary. I spent the day on it without finding a solution. 
There are very few match of this error message with google. 

Is it a problem that the binary name is written with an uppercase G (Gophers) and the .app name is with a lowercase g (gophers.app) ? It is the case. 

The solution to the error I reported previously was to compile with the app id net.meessen.xxx and not the <teamID>.net.meessen.giotest.

 



 

> Le 18 juin 2021 à 14:44, Chris Waldon <christopher.waldon.dev@gmail.com> a écrit :
> 
>> it was a long way, but I manage to create an Hello World app with Xcode and install it on my phone. I didn’t need to subscribe to the apple developper program to achieve that.
> 
> Excellent!
> 
>> I then tried to compile the gio gophers example to install it on my phone. This is the error message I get.
>> 
>> gogio: sign: no valid provisioning profile found for bundle id « xxxxx.net.meessen.giotest" among [xxxxx.net.meessen.giotest]
> 
> Hmm. This error reads to me as "I couldn't find this string within
> this list of one string". I do not know off the top of my head why
> this isn't working. I would recommend attaching a debugger to gogio
> and watching it try to choose the provisioning profile. You will
> probably be able to determine why it doesn't recognize that profile by
> seeing where and how it concludes that no profiles match.
> 
> I also note that in your error, the beginning and end quotes of the
> bundle ID aren't the same kind of quotation mark, and that there
> appears to be a space before xxxxx. If you are inserting the bundle id
> via some kind of script, make sure that it isn't inserting a space
> within that id.
> 
> Cheers,
> Chris

Bien cordialement,
Christophe Meessen
Details
Message ID
<3359AF39-F890-47B0-A1CD-2BCD156D9097@meessen.net>
In-Reply-To
<14E6F6BD-EB86-43D9-B7F8-3344611FC644@meessen.net> (view parent)
DKIM signature
pass
Download raw message
I tried uploading the .iap file with ideviceinstaller and got a more explicit error message: 

marco:gophers meessen$ ideviceinstaller -i gophers.ipa
WARNING: could not locate iTunesMetadata.plist in archive!
WARNING: could not locate Payload/Gophers.app/SC_Info/Gophers.sinf in archive!
After some more work I finally managed to get the gophers app running on my iPad. 

The text is nicely and perfectly rendered. This is what I wanted to verify. 

The only problem I see is that the image size is the one of an iPhone. It doesn’t take up all the iPad screen size. 
Is this a limitation of the gophers example program or is this a limitation of GIO ? 




> Le 21 juin 2021 à 17:16, Christophe Meessen <christophe@meessen.net> a écrit :
> 
> Hello,
> 
> I made some progress. I now can compile the Gophers example and generate the .iap file.
> Unfortunately I can’t download the .iap file to the device using Xcode. 
> 
> This is the error message I get:   
> 
> “gophers” does not contain an application bundle, so it cannot be installed on Corrida
> 
> I looked inside the the .iap file and there is a gophers.app directory that contains a Gophers binary. I spent the day on it without finding a solution. 
> There are very few match of this error message with google. 
> 
> Is it a problem that the binary name is written with an uppercase G (Gophers) and the .app name is with a lowercase g (gophers.app) ? It is the case. 
> 
> The solution to the error I reported previously was to compile with the app id net.meessen.xxx and not the <teamID>.net.meessen.giotest.
> 
> 
> 
> 
> 
> 
> 
>> Le 18 juin 2021 à 14:44, Chris Waldon <christopher.waldon.dev@gmail.com> a écrit :
>> 
>>> it was a long way, but I manage to create an Hello World app with Xcode and install it on my phone. I didn’t need to subscribe to the apple developper program to achieve that.
>> 
>> Excellent!
>> 
>>> I then tried to compile the gio gophers example to install it on my phone. This is the error message I get.
>>> 
>>> gogio: sign: no valid provisioning profile found for bundle id « xxxxx.net.meessen.giotest" among [xxxxx.net.meessen.giotest]
>> 
>> Hmm. This error reads to me as "I couldn't find this string within
>> this list of one string". I do not know off the top of my head why
>> this isn't working. I would recommend attaching a debugger to gogio
>> and watching it try to choose the provisioning profile. You will
>> probably be able to determine why it doesn't recognize that profile by
>> seeing where and how it concludes that no profiles match.
>> 
>> I also note that in your error, the beginning and end quotes of the
>> bundle ID aren't the same kind of quotation mark, and that there
>> appears to be a space before xxxxx. If you are inserting the bundle id
>> via some kind of script, make sure that it isn't inserting a space
>> within that id.
>> 
>> Cheers,
>> Chris
> 
> Bien cordialement,
> Christophe Meessen
> 
> 
> 

Bien cordialement,
Christophe Meessen
Details
Message ID
<123FAC8F-8B51-40D5-B131-7426E61E6CB3@meessen.net>
In-Reply-To
<14E6F6BD-EB86-43D9-B7F8-3344611FC644@meessen.net> (view parent)
DKIM signature
pass
Download raw message
After some more work I finally managed to get the gophers app running on my iPad. 

The text is nicely and perfectly rendered. This is what I wanted to verify. 

The only problem left is that the image size displayed on the iPad is the one of an iPhone. It doesn’t take up all the iPad screen size. 
Is this a limitation of the gophers example program, is this a limitation of GIO or did I do something wrong ? 




> Le 21 juin 2021 à 17:16, Christophe Meessen <christophe@meessen.net> a écrit :
> 
> Hello,
> 
> I made some progress. I now can compile the Gophers example and generate the .iap file.
> Unfortunately I can’t download the .iap file to the device using Xcode. 
> 
> This is the error message I get:   
> 
> “gophers” does not contain an application bundle, so it cannot be installed on Corrida
> 
> I looked inside the the .iap file and there is a gophers.app directory that contains a Gophers binary. I spent the day on it without finding a solution. 
> There are very few match of this error message with google. 
> 
> Is it a problem that the binary name is written with an uppercase G (Gophers) and the .app name is with a lowercase g (gophers.app) ? It is the case. 
> 
> The solution to the error I reported previously was to compile with the app id net.meessen.xxx and not the <teamID>.net.meessen.giotest.
> 
> 
> 
> 
> 
> 
> 
>> Le 18 juin 2021 à 14:44, Chris Waldon <christopher.waldon.dev@gmail.com> a écrit :
>> 
>>> it was a long way, but I manage to create an Hello World app with Xcode and install it on my phone. I didn’t need to subscribe to the apple developper program to achieve that.
>> 
>> Excellent!
>> 
>>> I then tried to compile the gio gophers example to install it on my phone. This is the error message I get.
>>> 
>>> gogio: sign: no valid provisioning profile found for bundle id « xxxxx.net.meessen.giotest" among [xxxxx.net.meessen.giotest]
>> 
>> Hmm. This error reads to me as "I couldn't find this string within
>> this list of one string". I do not know off the top of my head why
>> this isn't working. I would recommend attaching a debugger to gogio
>> and watching it try to choose the provisioning profile. You will
>> probably be able to determine why it doesn't recognize that profile by
>> seeing where and how it concludes that no profiles match.
>> 
>> I also note that in your error, the beginning and end quotes of the
>> bundle ID aren't the same kind of quotation mark, and that there
>> appears to be a space before xxxxx. If you are inserting the bundle id
>> via some kind of script, make sure that it isn't inserting a space
>> within that id.
>> 
>> Cheers,
>> Chris
> 
> Bien cordialement,
> Christophe Meessen
> 
> 
> 

Bien cordialement,
Christophe Meessen
Details
Message ID
<CAFcc3FQxYKsZdRNEJED9zje2a3OLdTZkgxc9FEy0C49vmxWZ8A@mail.gmail.com>
In-Reply-To
<123FAC8F-8B51-40D5-B131-7426E61E6CB3@meessen.net> (view parent)
DKIM signature
pass
Download raw message
Hi Christophe,

I'm glad that you figured it out, and sorry that I couldn't be more
help. The process is different when you have a paid apple developer
account.

> The only problem left is that the image size displayed on the iPad is the one of an iPhone. It doesn’t take up all the iPad screen size.
> Is this a limitation of the gophers example program, is this a limitation of GIO or did I do something wrong ?

I'm not certain what you mean by "image size". Could you share a link
to a screenshot on imgur or something?

If you're referring to the fact that most of the content in that
example doesn't resize to use the full screen, that's just because
that particular example was designed with small screens in mind. It's
pretty easy to build Gio interfaces that resize to accomodate any
screen size. We've been talking about retiring that example for a
while now.

If you'd like to see what a more conventional app might look like on
your iPad, try the gioui.org/example/x/component example.

Cheers,
Chris
Details
Message ID
<CCA4HD6NS4OW.25VR89JRKKUTF@testmac>
In-Reply-To
<CAFcc3FQxYKsZdRNEJED9zje2a3OLdTZkgxc9FEy0C49vmxWZ8A@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
On Tue Jun 22, 2021 at 13:32 CEST, Chris Waldon wrote:
> > The only problem left is that the image size displayed on the iPad is the one of an iPhone. It doesn’t take up all the iPad screen size.
> > Is this a limitation of the gophers example program, is this a limitation of GIO or did I do something wrong ?
>
> I'm not certain what you mean by "image size". Could you share a link
> to a screenshot on imgur or something?
>
> If you're referring to the fact that most of the content in that
> example doesn't resize to use the full screen, that's just because
> that particular example was designed with small screens in mind. It's
> pretty easy to build Gio interfaces that resize to accomodate any
> screen size.

I believe the issue is missing metadata for declaring the program ready
to handle iPad display sizes. I expect tweaking the generated Info.plist[0] is
enough to fix it. 

> We've been talking about retiring that example for a
> while now.
>

SGTM

Elias

[0] https://git.sr.ht/~eliasnaur/gio/tree/main/item/cmd/gogio/iosbuild.go#L311
Details
Message ID
<b60046a5-8f88-caab-8f3f-6617d320b761@meessen.net>
In-Reply-To
<CAFcc3FQxYKsZdRNEJED9zje2a3OLdTZkgxc9FEy0C49vmxWZ8A@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
Hello,

As reported in my previous mail on text rendering, here is a screen 
capture of the component example on the iPad. The image size problem is 
visible.

Does anyone know how to add my own icon to the app ?

[1] https://imgur.com/a/lJNepgz

Le 22/06/2021 à 13:32, Chris Waldon a écrit :
> Hi Christophe,
>
> I'm glad that you figured it out, and sorry that I couldn't be more
> help. The process is different when you have a paid apple developer
> account.
>
>> The only problem left is that the image size displayed on the iPad is the one of an iPhone. It doesn’t take up all the iPad screen size.
>> Is this a limitation of the gophers example program, is this a limitation of GIO or did I do something wrong ?
> I'm not certain what you mean by "image size". Could you share a link
> to a screenshot on imgur or something?
>
> If you're referring to the fact that most of the content in that
> example doesn't resize to use the full screen, that's just because
> that particular example was designed with small screens in mind. It's
> pretty easy to build Gio interfaces that resize to accomodate any
> screen size. We've been talking about retiring that example for a
> while now.
>
> If you'd like to see what a more conventional app might look like on
> your iPad, try the gioui.org/example/x/component example.
>
> Cheers,
> Chris

-- 
Bien cordialement,
Ch.Meessen
Details
Message ID
<CCBRFNRHNV34.2IN7AWI5F3U3M@testmac>
In-Reply-To
<b60046a5-8f88-caab-8f3f-6617d320b761@meessen.net> (view parent)
DKIM signature
pass
Download raw message
Patch: +7 -0
On Thu Jun 24, 2021 at 11:37 CEST, Christophe Meessen wrote:
> Hello,
>
> As reported in my previous mail on text rendering, here is a screen 
> capture of the component example on the iPad. The image size problem is 
> visible.
>

Try this unstested patch to cmd/gogio:

diff --git a/cmd/gogio/iosbuild.go b/cmd/gogio/iosbuild.go
index c8b504eb..4ebc1c92 100644
--- a/cmd/gogio/iosbuild.go
+++ b/cmd/gogio/iosbuild.go
@@ -352,6 +352,13 @@ func buildInfoPlist(bi *buildInfo) string {
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UISupportedInterfaceOrientations~ipad</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>DTCompiler</key>
	<string>com.apple.compilers.llvm.clang.1_0</string>
	<key>DTPlatformBuild</key>

It may trigger the iPad not to display your app in iPhone compatibility
mode.

> Does anyone know how to add my own icon to the app ?
>

The gogio tool takes an `-icon` flag. It should work for iPhone; iPad
icons may need adjustments to gogio as well. See [1].

Elias

[1] https://git.sr.ht/~eliasnaur/gio/tree/main/item/cmd/gogio/iosbuild.go#L263
Reply to thread Export thread (mbox)