Posts under Developer Tools & Services topic

Post

Replies

Boosts

Views

Activity

Sorting source code files in Xcode's navigator
Since Xcode 16 sorting source code files in the navigator with ascending order by name results in: A.hpp A.cpp B.hpp B.cpp ... Previous versions of Xcode sorted the files correctly (with respect to ascending order): A.cpp A.hpp B.cpp B.hpp Is this a bug or is there any parameter I have to set to get the old ordering back?
0
1
322
Oct ’24
Package.resolved discrepency
We are using a workspace file and have noticed that when we run fastlane commands that utilize xcodebuild command line arguments to run the export localization command from commandline, and it seems that it uses the xcodeproj package.resolved instead of the workspace package.resolved. This is causing issues as the xcodeproj package resolved will not update at all so is on old version of dependencies that cause xcodebuild commands to fail. Why is there multiple package.resolved files and why does the xcodeproj not stay updated with what is in the workspace resolved file? Why won't the xcodeproj resolved file update when I'm opening the xcodeproj file and selecting specific dependencies and telling it to update the package.
0
0
361
Sep ’24
When AppEnum or AppEntity is introduced into the iOS18 Widget file, xcode compilation will report an error: Error collecting extracted types: The file “SmartPlusWidgetControl.swift” couldn’t be opened because the text encoding of its contents can’t b
When AppEnum or AppEntity is introduced into the iOS18 Widget file, xcode compilation will report an error: Error collecting extracted types: The file “SmartPlusWidgetControl.swift” couldn’t be opened because the text encoding of its contents can’t be determined.
0
0
199
Sep ’24
Ghost Function - Automatic and Backdated Firebase Updates
Hi everyone, I am experiencing an issue that I wasn't able to identify its source after spending days in debugging and need some help / assistance. I have recently been to a local Apple Event dedicated to help and explain us how to use Instruments and Xcode Metrics tools, and also booked a Lab session with few of the Evangelists over there but the time wasn't enough for them to identify the root cause either. I have created a function that will lookup for all available jobs under one's account and toggle them between Private or Public based on the selection. Since I have ran and tested it I ended up with a continuous loop and update in Firebase of the jobs found that blocks the UI and freezes the app ( does not terminate it although ), in the following scenarios: When I reopen the app during the same logged session, the update is triggered but is backdated, so it will always update the field values for update and isPrivate fields to when was originally triggered, not in the present time. If I log out and login again it gets triggered again If I logout, remove the app completely and reinstall it the problem does not appear until I trigger again the toggle button from Privacy screen. This is where the settings sits. Profile Tab > Settings > Privacy. I have used all the available tools from Instruments to try to investigate the issue without any success, Profiler/SwiftUi etc... even disabled the func completely, uninstalled the app, reinstalled it, ran it again but the loop or however I can call it is still there, it still runs when I toggle the Privacy options button. For another account I have deleted the job from Firebase but in Xcode console I can see that something is calling the previous job id and trying to update the jobs for this account too, even if there are no more jobs documents in Firebase… The toggle button was working perfectly fine ( was changing only privacy settings per account ) before I have updated it with another func to change the jobs privacy too. I am puzzled on how come this update, which is related to an action of a button, gets triggered automatically when the app launches? Therefore, could someone please let me know if you have experienced something similar in the past and how did you solve it or how can I use the Instruments better than I am probably using them now to actually identify this ghost function ( hence I removed it completely from the code base and is still called ) that triggers this update ? Thank you
0
0
246
Oct ’24
Resolving "Unknown Apple ID" entries in Xcode Accounts settings
In Xcode 16, if you use automatic signing to build your app from the command line, you may run into a bug where Xcode repeatedly attempts and fails to migrate invalid developer account credentials. The Accounts settings in Xcode displays an "Unknown Apple ID" entry for each failed attempt. The xcodebuild command logs a message similar to the following text: IDEDistribution: Failed to log in with account "(null)" while checking for an App Store Connect account (Error Domain=DVTServicesAccountBasedSessionErrorDomain Code=0 "Unable to log in with account ''." UserInfo={NSLocalizedFailureReason=Unable to log in with account ''., NSLocalizedRecoverySuggestion=The login details for account '' were rejected., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount: 0x600002390b40; username=''>, NSUnderlyingError=0x6000035617d0 {Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." The issue is resolved in Xcode 16.1. If you use Xcode 16, you can workaround this issue by running the following command in Terminal: defaults delete com.apple.dt.Xcode DVTDeveloperAccountManagerAppleIDLists The command removes and signs you out of all your developer accounts on the system.
0
0
1k
Oct ’24
How to: Add File... w/o moving nor copying that file
I have a number of utility functions/extensions in a .swift file at a central location. In Xcode 15, I used to be able to Add File... and uncheck the box that said COPY. The project would then have a REFERENCE to the file. I could make changes to the shared file and all projects that referenced that file would see the latest version. I don't see how to do that in Xcode 16. Add File... opens a dialog and the only options (in a drop-down) are Copy and Move -- neither of which I want to do. How do you make a reference in Xcode 16?
0
1
308
Sep ’24
xCode升级到16.0后编译webrtc代码报错 _Float16 is not supported on this target
xCode升级到16.0后编译webrtc代码报错: [23/996] CXX clang_x64/obj/third_party/protobuf/protobuf_full/field_mask.pb.o FAILED: clang_x64/obj/third_party/protobuf/protobuf_full/field_mask.pb.o ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF clang_x64/obj/third_party/protobuf/protobuf_full/field_mask.pb.o.d -DHAVE_ZLIB -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1600 -DCR_CLANG_REVISION="n346557-4e0d9925-1" -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=375504 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -I../.. -Iclang_x64/gen -I../../third_party/protobuf/src -I../../third_party/zlib -fno-strict-aliasing -fstack-protector -fcolor-diagnostics -fmerge-all-constants -arch x86_64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -O2 -fno-omit-frame-pointer -gdwarf-4 -g2 -isysroot ../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -mmacosx-version-min=10.10.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-misleading-indentation -Wunguarded-availability -Wno-range-loop-analysis -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-pointer-to-int-cast -Wno-unused-function -Wno-shorten-64-to-32 -std=c++14 -stdlib=libc++ -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -fvisibility-inlines-hidden -c ../../third_party/protobuf/src/google/protobuf/field_mask.pb.cc -o clang_x64/obj/third_party/protobuf/protobuf_full/field_mask.pb.o In file included from ../../third_party/protobuf/src/google/protobuf/field_mask.pb.cc:4: In file included from ../../third_party/protobuf/src/google/protobuf/field_mask.pb.h:8: In file included from ../../buildtools/third_party/libc++/trunk/include/string:504: In file included from ../../buildtools/third_party/libc++/trunk/include/string_view:175: In file included from ../../buildtools/third_party/libc++/trunk/include/__string:56: In file included from ../../buildtools/third_party/libc++/trunk/include/algorithm:643: In file included from ../../buildtools/third_party/libc++/trunk/include/memory:653: In file included from ../../buildtools/third_party/libc++/trunk/include/typeinfo:60: In file included from ../../buildtools/third_party/libc++/trunk/include/exception:81: In file included from ../../buildtools/third_party/libc++/trunk/include/cstdlib:85: In file included from ../../buildtools/third_party/libc++/trunk/include/stdlib.h:100: In file included from ../../buildtools/third_party/libc++/trunk/include/math.h:303: ../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/math.h:614:27: error: _Float16 is not supported on this target extern _Float16 __fabsf16(_Float16) __API_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0)); 这个怎么解决?
0
1
419
Oct ’24
error: unknown type name 'CFAttributedStringRef'
OS ERROR] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:104:27: error: cannot combine with previous 'type-name' declaration specifier [OHOS ERROR] CFAttributedStringRef string ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0)); [OHOS ERROR] ^ [OHOS ERROR] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:132:27: error: unknown type name 'string'; did you mean 'std::string'? [OHOS ERROR] CFAttributedStringRef string, [OHOS ERROR] ^ [OHOS ERROR] ../../prebuilts/clang/ohos/darwin-arm64/llvm/bin/../include/c++/v1/iosfwd:249:65: note: 'std::string' declared here [OHOS ERROR] typedef basic_string<char, char_traits, allocator > string; [OHOS ERROR] ^ [OHOS ERROR] In file included from ../../ide/tools/previewer/util/unix/ClipboardObjc.mm:18: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:15: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAccessibilityColor.h:9: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSColor.h:46: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:10: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:10: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:10: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:39: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:26: [OHOS ERROR] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h:21: [OHOS ERROR] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:132:5: error: unknown type name 'CFAttributedStringRef'; did you mean 'NSAttributedStringKey'? [OHOS ERROR] CFAttributedStringRef string, [OHOS ERROR] ^ [OHOS ERROR] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h:22:20: note: 'NSAttributedStringKey' declared here [OHOS ERROR] typedef NSString * NSAttributedStringKey NS_TYPED_EXTENSIBLE_ENUM; [OHOS ERROR] ^ [OHOS ERROR] In file included from ../../ide/tools/previewer/util/unix/ClipboardObjc.mm:18:
0
1
367
Sep ’24
Developer Account Stuck on “Enroll Now” after Approval and Unable to Proceed with Payment
Hello Apple Developer Community, I am encountering a critical issue with my developer account registration and am hoping someone here might offer insights or solutions. Background: Recently, I registered a developer account under my company’s name. During the initial submission, there was a discrepancy between the employee verification documents and the registered company name due to our company having multiple entities. This led to Apple cancelling my registration. I subsequently clarified the situation, resubmitted the correct verification, and received an email from Apple confirming that my registration was approved. Current Issue: After receiving the approval, Apple instructed me to accept the privacy agreement and complete the payment. However, when I access my account in the Apple Developer app, I still see the “Enroll Now” button, which remains greyed out, making it impossible for me to proceed with the required steps. This has halted the entire process. Steps Taken So Far: 1. I reached out to Apple Developer Support, explaining the issue in detail. 2. They escalated my case to another team for further investigation and requested additional documentation, including device information, account details, and identification. 3. Despite following up, it has been over ten days without any resolution or updates. Question: Has anyone here experienced a similar situation, or does anyone know of additional steps that might help resolve this issue? Is there a way to directly reach a specific department that can address this technical problem with the account status in the Developer app? Any guidance or recommendations would be highly appreciated, as this delay is impacting our ability to proceed with app development. Thank you very much!
0
1
363
Nov ’24
Incremental build changes in Xcode 16?
Hi there! Was there a change in Xcode regarding incremental builds / updating an active Simulator with a new build? We use xcodebuild to manage our internal build framework and out of the sudden, incremental builds are not launched anymore and the Simulator is stuck waiting for the new build to be launched. This was not happening for the last 10+ years. If there is an xcodebuild flag and/or guide of this new behavior, it would help a lot. Thanks everyone!
0
0
498
Sep ’24
Xcode 16 build warning
I encountered an issue when implementing the WKUIDelegate protocol and NSItemProviderWriting protocol. Below is a minimal example of the code that reproduces the issue: import UIKit import WebKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } } class ItemProvider: NSObject, NSItemProviderWriting { static var writableTypeIdentifiersForItemProvider: [String] { fatalError() } func loadData( withTypeIdentifier typeIdentifier: String, forItemProviderCompletionHandler completionHandler: @escaping @Sendable (Data?, (any Error)?) -> Void ) -> Progress? { fatalError() } } extension ViewController: WKUIDelegate { func webView( _ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping @MainActor @Sendable () -> Void ) { fatalError() } } When implementing the WKUIDelegate protocol after NSItemProviderWriting protocol, the following warning appears: Instance method 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate' The target's SWIFT_VERSION is 6.0.
0
0
413
Oct ’24
Hololens 2 App Casualty - Can Vision Pro be a viable rescue
Created an application for healthcare using Hololens 2. Patent pending. Have significant interest and traction only to get the news a few weeks back about Microsoft discontinuing production. Our solution is mixed reality so a transition to the Vision Pro wouldn't be difficult, just need to know if our platform would be viable since pass through is critical for the end user. Any guidance and/or positive feedback would be great.
0
0
159
Oct ’24
Alternative Ways to Contact Apple Developer Support
I’ve been trying to contact Apple Developer Support regarding my developer account. After submitting the required documents related to the Digital Services Act (DSA), I emailed them to ask which additional documents were needed. However, I’ve been waiting for more than 3 days now without receiving a response. Unfortunately, the only way for me to reach them is via email, as phone support is not available in my country. This delay is causing significant issues for me, and I need to resolve this as soon as possible. Are there any alternative methods to contact Apple Developer Support aside from email? I’d appreciate any advice or assistance.
0
0
431
Oct ’24
ML model performance on iPhone test is always 0
Hi, Im using Xcode to test ML model performance. When I create a performance report on my Mac, I can get the performance report with prediction, load and Compilation time in ms. But when I tried to test the performance on iPhone16pro, although the test came to an end normally, but the prediction/load/compilation time are always 0, and there were no Compute Unit Mapping below. Thanks for your help.
0
0
294
Oct ’24
Unable to Connect Apple ID Binding and Payment on IPv6 Network, Need Solutions
Hi everyone, I'm experiencing issues with Apple ID binding and payment on an IPv6 network. I've tried multiple devices and networks, but the problem persists. I'm not sure if it's due to a lack of official support for IPv6. I have a few questions: 1.Has anyone successfully completed Apple ID binding and payment on an IPv6 network? 2.If there is no official support, are there any solutions or alternatives? For example, switching to IPv4 or other workarounds?
0
0
300
Oct ’24