Post

Replies

Boosts

Views

Activity

Reply to Regex expression in .split generates cannot convert type
I can reproduce the problem in a playground in Xcode 14A5228q on macOS 13 (22A5266r). I moved the Regex declaration to a separate line to rule out a parsing problem in the compiler front-end: let transaction = "DEBIT     03/05/2022    Doug's Dugout Dogs         $33.27" let r = /\s{2,}|\t/ let fragments = transaction.split(separator: r) The error message Cannot convert value of type 'Regex<Substring>' to expected argument type 'String.Element' (aka 'Character') is shown for line 3. Looks like String is missing a variant of split(separator:...) that accepts a Regex. There is no such function in the doc pages either. Another problem I'm having with Regex in Xcode 14A5228q, is that the parsing of the compact notation fails in my Swift package project. That is, if I copy the above three lines from the playground into my project, there will be an error in line 2 because the compiler fails to recognize / as a Regex start token.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’22
Reply to Regex expression in .split generates cannot convert type
I can reproduce the problem in a playground in Xcode 14A5228q on macOS 13 (22A5266r). I moved the Regex declaration to a separate line to rule out a parsing problem in the compiler front-end: let transaction = "DEBIT     03/05/2022    Doug's Dugout Dogs         $33.27" let r = /\s{2,}|\t/ let fragments = transaction.split(separator: r) The error message Cannot convert value of type 'Regex<Substring>' to expected argument type 'String.Element' (aka 'Character') is shown for line 3. Looks like String is missing a variant of split(separator:...) that accepts a Regex. There is no such function in the doc pages either. Another problem I'm having with Regex in Xcode 14A5228q, is that the parsing of the compact notation fails in my Swift package project. That is, if I copy the above three lines from the playground into my project, there will be an error in line 2 because the compiler fails to recognize / as a Regex start token.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Xcode 13.2 - Internal error : Missing Package Description Module
I have the same issue with Xcode 13.2 from the App Store, on M1 Pro and Intel MBP. Xcode won't show build destinations for Swift packages and won't build them. Can't select any targets inside Swift packages. Internal error: missingPackageDescriptionModule The same Xcode version (13C90) from https://developer.apple.com/download/release/ works fine.
Replies
Boosts
Views
Activity
Dec ’21
Reply to Failed retrieving request UUID for upload
Q: Is there a way to delete a post? The UI of this forum confused me and I ended up posting duplicates, expecting I could delete my older posts. A: No, you can't. You have to live with that mistake. Q: Nah. I edit my post to remind others of that issue.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Failed retrieving request UUID for upload
Go to App Store Connect and agree to the new Paid Applications Agreement.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21