Announcement: Welcome to the Apple Developer Forums
Find answers, ask questions, and share comments on a variety of development topics with fellow developers and Apple engineers. Search for keywords or tags to get started.

Learn more about the forums >

Top Posts

Post marked as solved
7.6k Views

Aspiring Developer

I'm still learning how to code and would love to get recommendations on how to learn swift/swiftui for iOS/macOS app development. Any recommendations are welcome :)
Asked
Last updated .
Post marked as Apple Recommended
111k Views

Having issues authorizing payment for Apple Developer Program

Hey guysI’ve been trying to pay for Apple Developer Program enrollment for about a week and still no luck. As well as I got from a small talk with the customer support – Apple never got my money. So it seems like my payment authorization fails all the time. But I don’t know what’s really going on.Have any of you ever had issues like that?Or maybe you just know what’s going on and how to fix it?
Asked
by Quaaac.
Last updated .
Post marked as solved
4.3k Views

Using Core Data with SwiftUI App Protocol

Is it possible to use CoreData with the newly announces SwiftUI App Protocol for 100% SwiftUI apps. If I need to create an app with persistant storage, is there a way to achieve this with the new protocol? I like the idea of having my app fully compatable across all systems. Thanks.
Asked
Last updated .
Post marked as solved
9.2k Views

Installing macOS Big Sur beta

I installed the profile for macOS Big Sur, but I got updated to Catalina beta 10.15.6 beta instead. Is it possible to install the Big Sur beta already?
Asked
by atineoSE.
Last updated .
Post marked as Apple Recommended
1.1k Views

SwiftUI isPlaceholder not showing

I'm following the Widgets Code-Along and at the end of part 1 Izzy uses .isPlaceholder as an easy way to show the widget placeholder but when I try it, it doesn't seem to be available yet. Am I missing something or is this feature coming in a future beta?
Asked
by Micrograx.
Last updated .
Post marked as solved
2.1k Views

Big Sur Terminal fails to present a shell

Anyone encountering an issue with Big Sur and the terminal failing to present a shell some reasonably short time after boot? Initially works no problems, after a while new Terminal windows open fine but the shell never loads and you're left looking at a cursor.
Asked
Last updated .
Post marked as solved
1.4k Views

Big Sur Beta 7 breaks SMB?

After the upgrade from Beta 6 to Beta 7 I am not able to connect to any smb-shares any more. I tried it with a Windows Server, Synology DriveStation and a Debian implementation. I'm directly getting the message Error with connection.
Asked
Last updated .
Post marked as solved
1.3k Views

Xcode 12 is slow when launching apps (even sample projects)

Running a project from Xcode 12 seems to be very slow during launch. Even the example projects from Apple. Basically it feels as if the app is stuck on the launch screen? However, if I unplug from my Mac and just launch via tapping on the App icon, it's super fast. Anyone is having the same issue?
Asked
by terenze.
Last updated .
Post marked as solved
587 Views

Collapse sidebar in SwiftUI (Xcode 12)

I'm trying to do a simple application in SwiftUI taking advantage of SwiftUI 2.0's new multiplatform project template, and I wish to add the option to collapse the sidebar as many other apps do. I've got an extremely simple sidebar I did following the Fruta example project, and I tried adding a boolean state variable that controls whether the sidebar should show or not, but that doesn't work because when the sidebar is hidden, the main view is turned translucent. On iPadOS, a button appears on top of the sidebar that allows to collapse it. How would I do this in macOS? Is there a way to natively achieve this in SwiftUI, or I'll need to resort to a UIKit workaround?  Please note I'm using macOS Big Sur, Xcode 12, and SwiftUI 2.0 Thanks in advance.
Asked
by Semiak.
Last updated .
Post marked as solved
1.3k Views

Build being rejected for new app

Hello, we are in the process of releasing a new application in the App Store. I can archive and upload the build ok straight from xcode but then I get this issue: Dear Developer, We identified one or more issues with a recent delivery for your app, "McFamily" 3.2.1 (354). Please correct the following issues, then upload again.  ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).  Best regards, The App Store Team The thing is that we are not using UIWebView in our code. We are using some pods that are using it but those should be in their last version. Here is the pod file: Uncomment the next line to define a global platform for your project platform :ios, '11.0' Uncomment the next line to ignore all warnings from all pods inhibit_all_warnings! Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! def pods_base 	pod 'Kingfisher' 	pod 'RSKImageCropper' 	pod 'IHKeyboardAvoiding' 	pod 'RealmSwift' 	pod 'Liferay-iOS-SDK', '~> 7.2.2' 	pod 'LiferayScreens' 	pod 'ActiveLabel' 	pod 'SwiftLinkPreview' 	pod 'AppCenter' 	pod 'Firebase/Analytics' end target 'Ourlounge' do pods_base target 'OurloungeTests' do inherit! :search_paths end end post_install do |installer| 		installer.pods_project.targets.each do |target| 				target.build_configurations.each do |config| 				end 		end end The thing is that we publish this code base for other apps (that target other markets/countries) and have no issues when releasing updates for those other apps. Any help on how to proceed would be very much appreciated.
Asked
by pepitoria.
Last updated .
Post marked as solved
1.6k Views

Widgets not working with TestFlight since Xcode 12 beta 3

I have noticed a strange problem today. I have uploaded a build of my app to TestFlight for internal testing using Xcode 12 beta 3. The app has widgets and if I run the app locally from Xcode widgets are working on device. However, when I install a beta from TestFlight the widgets are not suggested by iOS and I can see in the logs that the widgets are actually crashing (something is going on with WidgetKit in the crash logs). This has started only with beta 3, I have previously used TestFlight with widgets in beta 1 and beta 2. Does anyone else have this problem? My feedback number is FB8122742.
Asked
Last updated .
Post marked as solved
816 Views

Is there a way to use Core Data/CloudKit to store and move data with Swift UI in Xcode 12?

It seems that AppDelegate and SceneDelegate are no longer needed in Swift UI in Xcode 12. I'm having trouble figuring out how to build an iCloud/Core Data enabled application with Swift UI. Is there a video/tutorial/guide on implementing Core Data or Cloudkit with the new Swift UI frameworks yet?
Asked
Last updated .
Post marked as solved
2k Views

SwiftUI Previews not working with Firebase

SwiftUI previews don't seem to work in Xcode 12, beta 5, when using Firebase Analytics. The app builds and runs fine to simulator or device, but fails generating SwiftUI preview for a widget with the following message: ld: in /Users/../.../Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector(FIRAnalyticsConnector_e321ed8e3db06efc9803f6c008e67a34.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/.../.../Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) It was working fine in beta 4. Anyone else seen this? Any ideas?
Asked
Last updated .
Post marked as solved
1k Views

App Store Connect Operation Error - Could not find or load main class

Anyone have a fix for this App Store Connect Error? Could not find or load main class 2.app.Contents.SharedFrameworks.ContentDeliveryServices.framework.Versions.A.itms.macOS.lib:.Users.JohnSmith.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:. I've attempted to reinstall java, downgrade from Version 12.0 beta 2 (12A6163b) to Xcode 12.0 beta. Tried uploading previously passing archieves with different version number. Nothing seems to rid me of this error.
Asked
by Macwayne.
Last updated .

Top Users

User Avatar for: KMT

KMT

Reputation: 20,094
Posts: 21,958
Solved: 1,515
Apple Recommended: 0
User Avatar for: Claude31

Claude31

Reputation: 13,232
Posts: 11,030
Solved: 1,047
Apple Recommended: 0
User Avatar for: OOPer

OOPer

Reputation: 9,765
Posts: 2,527
Solved: 729
Apple Recommended: 0
User Avatar for: QuinceyMorris

QuinceyMorris

Reputation: 7,135
Posts: 3,324
Solved: 571
Apple Recommended: 0