Date   
Re: plist sanity checker utility?

Chris Hanson
 

On Apr 2, 2020, at 12:37 PM, Carl Hoefs <newslists@...> wrote:

I'm working with a huge (1.4MB) plist file, and I suspect there may be an error with respect to syntax or formatting somewhere therein.

Isn't there an Xcode-related command line tool plist file sanity checker utility? I seem to recall the existence of such a beast...
`plutil -lint` will do it, and comes with the OS.

-- Chris

Re: plist sanity checker utility?

Andy Lee
 

On Apr 2, 2020, at 3:37 PM, Carl Hoefs <newslists@...> wrote:
Isn't there an Xcode-related command line tool plist file sanity checker utility? I seem to recall the existence of such a beast...
You may be thinking of /usr/bin/plutil. I see it has a -lint option that will "check the property list files for syntax errors".

--Andy

Re: plist sanity checker utility?

Carl Hoefs
 

Yes! plutil was the utility I as thinking of.

Thanks Jack, Alex!

-Carl

On Apr 2, 2020, at 1:29 PM, Jack Brindle via groups.io <jackbrindle=me.com@groups.io> wrote:

Duck Duck Go is your friend…

plutil is already on your system as a command line utility.
plutil <file.plist>
should give rather interesting results. Check out the man page.

The old plistchecker app is still around, although old at this point.
There are other utilities that should be helpful as well.

Jack


On Apr 2, 2020, at 12:37 PM, Carl Hoefs <newslists@...> wrote:

I'm working with a huge (1.4MB) plist file, and I suspect there may be an error with respect to syntax or formatting somewhere therein.

Isn't there an Xcode-related command line tool plist file sanity checker utility? I seem to recall the existence of such a beast...

Thx,
-Carl





Re: plist sanity checker utility?

Alex Zavatone
 

Since it’s XML, could we use an XML validator?

On Apr 2, 2020, at 3:29 PM, Jack Brindle via groups.io <jackbrindle=me.com@groups.io> wrote:

Duck Duck Go is your friend…

plutil is already on your system as a command line utility.
plutil <file.plist>
should give rather interesting results. Check out the man page.

The old plistchecker app is still around, although old at this point.
There are other utilities that should be helpful as well.

Jack


On Apr 2, 2020, at 12:37 PM, Carl Hoefs <newslists@...> wrote:

I'm working with a huge (1.4MB) plist file, and I suspect there may be an error with respect to syntax or formatting somewhere therein.

Isn't there an Xcode-related command line tool plist file sanity checker utility? I seem to recall the existence of such a beast...

Thx,
-Carl





Re: plist sanity checker utility?

Jack Brindle
 

Duck Duck Go is your friend…

plutil is already on your system as a command line utility.
plutil <file.plist>
should give rather interesting results. Check out the man page.

The old plistchecker app is still around, although old at this point.
There are other utilities that should be helpful as well.

Jack


On Apr 2, 2020, at 12:37 PM, Carl Hoefs <newslists@...> wrote:

I'm working with a huge (1.4MB) plist file, and I suspect there may be an error with respect to syntax or formatting somewhere therein.

Isn't there an Xcode-related command line tool plist file sanity checker utility? I seem to recall the existence of such a beast...

Thx,
-Carl



Re: plist sanity checker utility?

Alex Zavatone
 

I’ve used this.

PlistEdit Pro.app

In any case, the other alternative is duplicate the file, open the copy and start removing pieces until it works and then start stuffing parts back in.

On Apr 2, 2020, at 2:37 PM, Carl Hoefs <newslists@...> wrote:

I'm working with a huge (1.4MB) plist file, and I suspect there may be an error with respect to syntax or formatting somewhere therein.

Isn't there an Xcode-related command line tool plist file sanity checker utility? I seem to recall the existence of such a beast...

Thx,
-Carl



plist sanity checker utility?

Carl Hoefs
 

I'm working with a huge (1.4MB) plist file, and I suspect there may be an error with respect to syntax or formatting somewhere therein.

Isn't there an Xcode-related command line tool plist file sanity checker utility? I seem to recall the existence of such a beast...

Thx,
-Carl

Re: Xcode not remembering columns in the Editor between sessions...

Dave
 

It’s been like that for ages, I thought it was a “feature”.

It doesn’t remember window sizes or positions either which is super annoying!

Cheers
Dave

On 13 Mar 2020, at 18:48, robmartin@... wrote:

I use a widescreen monitor, and usually have 3 columns displayed when I'm editing in Xcode 11.3.1.

Whenever I restart, having Quit Xcode, only 2 columns show. If I drag the window's right edge, the 3rd column appears but is very narrow - so I have to then resize it…

Am I missing something really basic here, or is there a way to have Xcode remember the column layout of the Editor? I can't find anything in Prefs…

Rob

Re: Xcode not remembering columns in the Editor between sessions...

robmartin@frontiernet.net
 

Thanks Jens, will do…

On Mar 14, 2020, at 2:18 PM, Jens Alfke <@snej> wrote:

File a bug report! (I only use 2 editors, so I’ve never seen this.)

—Jens

Re: Xcode not remembering columns in the Editor between sessions...

 

File a bug report! (I only use 2 editors, so I’ve never seen this.)

—Jens

On Mar 14, 2020, at 5:11 AM, "robmartin@..." <robmartin@...> wrote:

I usually have the Navigator + 3 Editors… (laid out in columns rather than rows). The last editor on the right is always missing when I reopen Xcode. Clicking the Show/Hide Code Review button twice brings it back with the right dimensions…

Rob

On Mar 13, 2020, at 6:47 PM, Jens Alfke <@snej> wrote:

What do you mean by "columns"? Editors, or the navigator/inspector views, or … ?

—Jens

Re: Xcode not remembering columns in the Editor between sessions...

robmartin@frontiernet.net
 

I usually have the Navigator + 3 Editors… (laid out in columns rather than rows). The last editor on the right is always missing when I reopen Xcode. Clicking the Show/Hide Code Review button twice brings it back with the right dimensions…

Rob

On Mar 13, 2020, at 6:47 PM, Jens Alfke <@snej> wrote:

What do you mean by "columns"? Editors, or the navigator/inspector views, or … ?

—Jens

Re: Xcode not remembering columns in the Editor between sessions...

Alex Zavatone
 

Got a few screenshots you can post to clue us in?


On Mar 14, 2020, at 12:47 AM, Jens Alfke <jens@...> wrote:



On Mar 13, 2020, at 10:48 AM, robmartin@... wrote:

I use a widescreen monitor, and usually have 3 columns displayed when I'm editing in Xcode 11.3.1.

What do you mean by "columns"? Editors, or the navigator/inspector views, or … ?

—Jens

Re: Xcode not remembering columns in the Editor between sessions...

 



On Mar 13, 2020, at 10:48 AM, robmartin@... wrote:

I use a widescreen monitor, and usually have 3 columns displayed when I'm editing in Xcode 11.3.1.

What do you mean by "columns"? Editors, or the navigator/inspector views, or … ?

—Jens

Re: Xcode not remembering columns in the Editor between sessions...

robmartin@frontiernet.net
 

I've just discovered that if I click the "Show/Hide Code Review" button *twice*, my 3rd column magically appears with the correct dimensions… How could I have missed that...

On Mar 13, 2020, at 1:48 PM, robmartin@... wrote:

I use a widescreen monitor, and usually have 3 columns displayed when I'm editing in Xcode 11.3.1.

Whenever I restart, having Quit Xcode, only 2 columns show. If I drag the window's right edge, the 3rd column appears but is very narrow - so I have to then resize it…

Am I missing something really basic here, or is there a way to have Xcode remember the column layout of the Editor? I can't find anything in Prefs…

Rob

Xcode not remembering columns in the Editor between sessions...

robmartin@frontiernet.net
 

I use a widescreen monitor, and usually have 3 columns displayed when I'm editing in Xcode 11.3.1.

Whenever I restart, having Quit Xcode, only 2 columns show. If I drag the window's right edge, the 3rd column appears but is very narrow - so I have to then resize it…

Am I missing something really basic here, or is there a way to have Xcode remember the column layout of the Editor? I can't find anything in Prefs…

Rob

Re: Another Odd Question

Charles Phillips
 

Quincey and Sak had exactly the right answers! Quincey's solution worked and now that I see what Sak does - that should solve the problem with XCode on the MacBook!!! Not only did I get my code building again but I learned a lot about XCode and Github and the interaction. 

Thanks!!

Charles

Re: Another Odd Question

Quincey Morris
 

On Feb 27, 2020, at 18:43 , Charles Phillips <phillipstriples@...> wrote:

I am trying to connect the version on XCode to an existing repository but the Add an existing remote refuses to cooperate.

I see the "Remote Name" and "Location" entries and have tried to put in the names of the repositories but the XCode does not connect. 

It’s a bit hard to tell from your brief description, but that’s not how it works. A remote is a reference in an existing repository to another copy of the same repository. If you already have a local copy of the repository on your Mac Mini, then adding another remote is probably not the right thing to do — it likely already has the remote reference.

Ideally, assuming that you pushed all your changes from the MacBook to GitHub, then you should just discard whatever you have locally on the Mac Mini and clone a new copy of the repository there:

— Go to GitHub, click on the “Clone or Download” button, and copy the git URL that’s shown there. (Don’t actually download anything.)

— Then in Xcode, go to Source Control -> Clone, and paste the git URL.

— Complete the cloning process over the next couple of dialogs, then you should be good to go.

If you have modified files locally that you never pushed to GitHub, the easiest approach is to set them aside, follow the regular clone procedure (above), then replace files that need updating from the copies you kept.

It really shouldn’t be any harder than that, unless for some reason your local or remote repositories are broken and need to be recovered. I suspect that’s not the case.

Re: Another Odd Question

Sak Wathanasin
 



On 28 Feb 2020, at 02:43, Charles Phillips <phillipstriples@...> wrote:

I see the "Remote Name" and "Location" entries and have tried to put in the names of the repositories but the XCode does not connect. Should the Location be https://github.com/CharlesPhillipsHouston  (which is what shows up in GitHub)???

And the Remote Name should be the name of the repository? 

I think so, at least that's what the Xcode help for "Add existing remote" implies. However, you first need to add your Github account to Xcode under Preferences->Accounts.

The easiest way I found to copy Xcode-related stuff from one Mac to another is to simply copy the entire source folder tree over - embedded in it is a ".git" directory that contains all the info that (the git client in) Xcode needs, apart from account info. If you also copy over the ".gitXXXX" files & folders from your home directory (they are hidden by the Finder, so I use the Terminal), you will pick up your global Git settings.

When we replaced our MacMini build boxes, I simply used the "Migration Assistant" to copy the entire home directory over, and that included all the Xcode settings, passwords in the keychain etc. So Xcode just picked up where it'd left off.

Regards
Sak Wathanasin
Network Analysis Limited           http://www.network-analysis.ltd.uk

Re: Another Odd Question

Jonathan Prescott
 




Jonathan Prescott
(919) 884-6451

On Feb 27, 2020, at 9:43 PM, Charles Phillips <phillipstriples@...> wrote:

All -

I asked a question here last month and got a lot of good answers, so here goes again.

I have two Macs (a 2011 MacBook Pro and a 2012 Mac Mini) and recently decided that I had better update them as much as possible before it was too late. So I updated the MacBook to High Sierra (with a patcher application since the MacOS High Sierra certificate had expired) and the Mac Mini to Mojave (also used a patcher there). The Mojave update was flawless, but now XCode still runs on the Mini but no longer runs on the MacBook. Grrrr. I always used XCode mostly on the MacBook and had my GitHub repositories updated from that computer. 

Being lazy, I had never figured out how to get the Mac Mini connected so that I could push and pull from my GitHub repositories. 

So now I am trying to see my repositories on GitHub from the Mac Mini, no joy. 

I am trying to connect the version on XCode to an existing repository but the Add an existing remote refuses to cooperate.

I see the "Remote Name" and "Location" entries and have tried to put in the names of the repositories but the XCode does not connect. Should the Location be https://github.com/CharlesPhillipsHouston  (which is what shows up in GitHub)???

And the Remote Name should be the name of the repository? 

I have tried a number of variations and have looked through the help.

Suggestions??

Charles Phillips
Houston, Texas

Re: Another Odd Question

Alex Zavatone
 

If getting newer Macs is an option, I have a great reseller in TX that can get you more modern Macs (iMacs, MacBook Pros, Airs) at under $1000 per.  I’ve been using them for 4 years.

Please reply off list if that’s an option for you.

One other option is to install fresh OSes to external SSDs and run your tests from there on each Mac.  Upgrade as necessary and test booting each Mac off of different versions of the SSD.  I’d use 2.  Mirror one to the other and then upgrade one.  Try ti on both.  If it works, mirror back to the other SSD.  Stop the upgrade when one fails.  

Slightly older Macs from 2020 are fine at least 5 years back.  I’m typing this on a mid 2015 MBP.  As soon as you boot your Mac off of an SSD, it’s a different world.

If it’s in your budget, I’d look at upgrading you Macs to newer used Macs.  

Good luck

On Feb 27, 2020, at 8:43 PM, Charles Phillips <phillipstriples@...> wrote:

All -

I asked a question here last month and got a lot of good answers, so here goes again.

I have two Macs (a 2011 MacBook Pro and a 2012 Mac Mini) and recently decided that I had better update them as much as possible before it was too late. So I updated the MacBook to High Sierra (with a patcher application since the MacOS High Sierra certificate had expired) and the Mac Mini to Mojave (also used a patcher there). The Mojave update was flawless, but now XCode still runs on the Mini but no longer runs on the MacBook. Grrrr. I always used XCode mostly on the MacBook and had my GitHub repositories updated from that computer. 

Being lazy, I had never figured out how to get the Mac Mini connected so that I could push and pull from my GitHub repositories. 

So now I am trying to see my repositories on GitHub from the Mac Mini, no joy. 

I am trying to connect the version on XCode to an existing repository but the Add an existing remote refuses to cooperate.

I see the "Remote Name" and "Location" entries and have tried to put in the names of the repositories but the XCode does not connect. Should the Location be https://github.com/CharlesPhillipsHouston  (which is what shows up in GitHub)???

And the Remote Name should be the name of the repository? 

I have tried a number of variations and have looked through the help.

Suggestions??

Charles Phillips
Houston, Texas