This bundle is invalid. The value for key CFBundleVersion [1.0.1] in the Info.plist file must contain a higher version than that of the previously uploaded version [5]. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion (ID: 978303b8-eb71-4d71-9169-b0b0860fd8ec)
The issue is an error while uploading macOS version 1.0.1 to the App store. If I want to solve it simply and quickly now, do I have to skip 1.0.1 and upload version 5.0.1 right away?
I made an inquiry to Apple, but they only asked me to ask the forum or provide technical support.
I would appreciate it if you could reply even if it's not accurate. I don't know if the problem is mine or Apple's problem, so I can't solve it for a long time.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Currently, there must be a request for access to documents with xcode, but we do not request access.
Added NSDocumentDirectoryUsageDescription to info.
import SwiftUI
import AVFoundation
import UniformTypeIdentifiers
struct ContentView: View {
@State private var audioPlayer: AVAudioPlayer?
@State private var isPlaying = false
@State private var currentFileName: String = "No file selected"
@State private var showingDocumentPicker = false
@State private var songList: [String] = UserDefaults.standard.stringArray(forKey: "SavedSongs") ?? []
@State private var currentSongIndex: Int = 0
var body: some View {
VStack {
Text(currentFileName)
.font(.headline)
.padding()
List {
ForEach(songList, id: \.self) { song in
HStack {
Text(song)
.onTapGesture {
loadAndPlaySong(named: song)
}
Spacer()
Button(action: {
removeSong(named: song)
}) {
Image(systemName: "trash")
.foregroundColor(.red)
}
}
}
}
.listStyle(PlainListStyle())
HStack(spacing: 10) {
Button(action: {
showingDocumentPicker = true
}) {
Text("Load")
.font(.system(size: 12))
.frame(width: 50, height: 25)
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(5)
}
.padding(.bottom, 20)
}
.padding()
.sheet(isPresented: $showingDocumentPicker) {
DocumentPicker(audioPlayer: $audioPlayer, currentFileName: $currentFileName, songList: $songList)
}
.onAppear {
if !songList.isEmpty {
loadAndPlaySong(named: songList[currentSongIndex])
}
}
}
func playSong() {
audioPlayer?.play()
isPlaying = true
}
func pauseSong() {
audioPlayer?.pause()
isPlaying = false
}
func stopSong() {
audioPlayer?.stop()
audioPlayer?.currentTime = 0
isPlaying = false
}
func nextSong() {
currentSongIndex = (currentSongIndex + 1) % songList.count
loadAndPlaySong(named: songList[currentSongIndex])
}
func previousSong() {
currentSongIndex = (currentSongIndex - 1 + songList.count) % songList.count
loadAndPlaySong(named: songList[currentSongIndex])
}
func loadAndPlaySong(named songName: String) {
guard let documentsURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else { return }
let fileURL = documentsURL.appendingPathComponent(songName)
do {
audioPlayer = try AVAudioPlayer(contentsOf: fileURL)
audioPlayer?.prepareToPlay()
currentFileName = songName
playSong()
} catch {
print("Error loading file: \(error.localizedDescription)")
}
}
func removeSong(named songName: String) {
songList.removeAll { $0 == songName }
UserDefaults.standard.set(songList, forKey: "SavedSongs")
}
}
struct DocumentPicker: UIViewControllerRepresentable {
@Binding var audioPlayer: AVAudioPlayer?
@Binding var currentFileName: String
@Binding var songList: [String]
func makeCoordinator() -> Coordinator {
return Coordinator(self)
}
func makeUIViewController(context: Context) -> UIDocumentPickerViewController {
let documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: [UTType.audio])
documentPicker.delegate = context.coordinator
return documentPicker
}
func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: Context) {}
class Coordinator: NSObject, UIDocumentPickerDelegate {
let parent: DocumentPicker
init(_ parent: DocumentPicker) {
self.parent = parent
}
func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) {
guard let url = urls.first else { return }
do {
if url.startAccessingSecurityScopedResource() {
defer { url.stopAccessingSecurityScopedResource() }
let fileName = url.lastPathComponent
let documentsURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
let destinationURL = documentsURL.appendingPathComponent(fileName)
if FileManager.default.fileExists(atPath: destinationURL.path) {
try FileManager.default.removeItem(at: destinationURL)
}
try FileManager.default.copyItem(at: url, to: destinationURL)
parent.audioPlayer = try AVAudioPlayer(contentsOf: destinationURL)
parent.audioPlayer?.prepareToPlay()
parent.currentFileName = fileName
if !parent.songList.contains(fileName) {
parent.songList.append(fileName)
UserDefaults.standard.set(parent.songList, forKey: "SavedSongs")
}
} else {
print("I can't get file access.")
}
} catch {
print("An error occurred while loading the file: \(error.localizedDescription)")
}
}
func documentPickerWasCancelled(_ controller: UIDocumentPickerViewController) {
}
}
}
I want to move the app to the home screen if there is no response from the user after a few seconds after launching the app.
Currently, I am making custom keyboard as an extension.
As I was making it, I was able to specify the background color of the keyboard button.
But what I want is to insert a UIImage instead of a UIColor, but it doesn't work. Can anyone tell me?
People like Claude 31 who can give me a rough idea, please do not comment and I will report you.
Should we study C++ related to augmented reality and deal with Unity and Unreal Engine?
I am currently implementing in-app purchases. I have implemented simple in-app purchases using product.storekit within Xcode, and now I am developing to sell products by implementing auto-renewable subscriptions. Do I necessarily need to create my own personal server to use receipt information? I have never created a server before. Also, if I only want to implement simple in-app purchases, do I still need a personal server?
Currently, the id of my actual visionpro device is different from the xcode that works on my macmini. I added a visionpro id to xcode, but I can't build it with my visionpro. Can I log out of the existing login to xcode and log in with the same ID as visionpro? However, the appleID created for visionpro does not have an Apple Developer membership, so there is no certificate that makes it run on the actual device. How can I add my visionpro ID from the ID with my apple developer membership to run the xcode project app on visionpro? This is the first time this is the first time.
I'm writing for location information, but requestAlwaysAuthorization() is not available on VisionOS.
I'm not sure if I can't use this method at all, or if there's an alternative way.
If there is a competent developer who knows how to solve it, please reply.
Localizable.strings:1:1 validation failed: Couldn't parse property list because the input data was in an invalid format
I'm going to dispose of my current MacBook Pro and use only vision pro, is it possible to run xcode normally on vision pro? There are too few rentals or disclosures about vision pro at Apple. Apple seems to be mystic...
I got a vision pro. I need a recording function, but when I looked it up in the developer documentation, I'm a little worried because it's only in the developer simulator. I'm making a recording app, but I'm asking other developers if they have any information because I don't want to make it so that Apple doesn't suggest or allow guidelines.
What is the difference between swiftdata and coredata? I am coding by integrating coreda and icloud. As introduced at wwdc, I heard that it can be used more easily in xcode. However, for me who has to sell it tomorrow, the stability of swiftdata after the official release of ios17 in the future is low, and scalability and modification are difficult. If it's difficult, it's a lot of trouble. And the most important thing, is there any difference from coredata by using swiftdata in the experience of my valuable customers who use my program? I'm well aware that everyone is learning and discussing. Thank you for sharing your experience.