MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

My SwiftUI previews for Please Don’t Rain stopped working and I couldn’t figure out why. I finally filed a TSI asking for help.

I have my answer.

They broke because I have an apostrophe in my app name. 😭

In order to get them working again now they are suggesting I do a “pretty thorough rename” throughout the app. My concern about breaking something else (and the time it would take to fix) is greatly overwhelming my desire to use previews that haven’t worked for months.

brunodelgado,
@brunodelgado@mastodon.social avatar

@MuseumShuffle 😯😯

I would try to overcome the hard work on renaming everything. Previews are so useful IMO.

klemensstrasser,
@klemensstrasser@mastodon.social avatar
genegoykhman,
@genegoykhman@mastodon.social avatar

@MuseumShuffle ugh that sucks. I wonder if using a fancy quote ‘ would make any difference.

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@genegoykhman That's quite possible! Someone else commented this:

"I have an app that takes files and converts/resaves them. Turns out apostrophes break that process too.

The app would crash if you tried to save a file with a ' in the filename, but ’ was fine."

hopeforall,
@hopeforall@mastodon.social avatar

@MuseumShuffle something seems off with that answer. Like it's a bug not to allow them. I just did a brief search in the Mac App Store there's other apps with apostrophe's. Plus, it's part of the English language. Weird.

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@hopeforall Oh it's definitely a bug. They said I should be able to have a name with an apostrophe and previews used to work with my name with an apostrophe.

Joekw,
@Joekw@mastodon.social avatar
MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@Joekw Exactly my reaction.

Joekw,
@Joekw@mastodon.social avatar

@MuseumShuffle presumably it worked at one point though?? did apple say they’d fix it?

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@Joekw Oh yes, worked perfectly fine. I believe it was when I updated to a newer version of Xcode when the fun started.

They said I should be able to use an apostrophe in the name but if I want previews to work right now I need to do some drastic renaming (except for the Display Name in the Xcode General settings).

rgordon,
@rgordon@mastodon.social avatar

@MuseumShuffle App name or Xcode project name? If the former alone it’s wild to me that this would break Previews. Either way it’s still a bit… 🫠

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@rgordon The advice was to rename it everywhere and then use the apostrophe in the Display Name in the Xcode General settings.

rgordon,
@rgordon@mastodon.social avatar

@MuseumShuffle Yes, that sounds about right to me. I'm not an expert but just battle-scarred from having students insert all sorts of exciting characters into their Xcode project names over the years. 😅

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@rgordon if I remember correctly I think I have a feedback open where if you start the project name with a number very nasty things happen.

rgordon,
@rgordon@mastodon.social avatar

@MuseumShuffle Hmm, thanks! That is good to know!

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

Ironically I was extremely concerned about having an apostrophe in the app name when I first created the app but when everything worked as expected I thought I was in the clear. 🫠

alexsereno,
@alexsereno@mastodon.social avatar
MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

@alexsereno my reaction when I woke up this morning and read the email.

alexsereno,
@alexsereno@mastodon.social avatar

@MuseumShuffle at least it’s a funny reason, but 😅

  • All
  • Subscribed
  • Moderated
  • Favorites
  • SwiftUI
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines