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.
Post
Replies
Boosts
Views
Activity
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.
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.
Go to App Store Connect and agree to the new Paid Applications Agreement.
Steffen's solution worked for me as well. Thanks much.
To recap, in Terminal enter
sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil unenroll
sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil enroll DeveloperSeed
Then, in System Preferences, open Software Update and wait a few seconds. "macOS Big Sur Beta" shows up.