Developer Tools

RSS for tag

Ask questions about the tools you can use to build apps.

Posts under Developer Tools tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Prevent Xcode from injecting UIRequiredDeviceCapabilities
Xcode 16.2 suddenly injects the UIRequiredDeviceCapabilities key into our app's Info.plist. This results in a rejection from App Store Connect because of this key: TMS-90109: This bundle is invalid - The key UIRequiredDeviceCapabilities in the Info.plist may not contain values that would prevent this application from running on devices that were supported by previous versions. Refer to QA1623 for additional information: https://developer.apple.com/library/ios/#qa/qa1623/_index.html The setting INFOPLIST_KEY_UIRequiredDeviceCapabilities is empty in our project, yet Xcode still injects: <key>UIRequiredDeviceCapabilities</key> <array> <string>arm64</string> </array> How can we prevent that? Or is there a way to strip it out during the build process? The Info.plist seems to get generated during an invisible build step, is there a way to make this explicit?
3
1
257
Feb ’25
App will not archive a Catalyst Version
I have an iOS app which I'm trying to ship to the Mac App Store. The app was created for iOS 7, but has been kept up to date. I mention it because it has an old project file. I'm able to build and run the app on my Silicon Mac fine. However, when I archive with target "My Mac (Designed for iPad)", I get an archive of type "iOS App Archive". Here's what I've checked: Target is set to “My Mac (Designed for iPad)” “SUPPORTS_MACCATALYST” is set to “YES” on the main target and the extensions “MACOSX_DEPLOYMENT_TARGET” set to “14.6” on the main target and the extensions “Supported Platforms” is set to “iOS” except for Watch targets and targets which also run on watchOS. If I filter the build logs for "Catalyst" there are no results. If I filter them for "Mac" there are no relevant results. Clean build folder Delete derived data Restart Xcode Xcode Version 16.2 (16C5032a) macOS Version 15.2 Other notes: The app has a widget extension and an intents extension and two custom frameworks When I try and archive for Mac using Xcode Cloud, it runs for 90 minutes and then fails. I suspect it’s related to this issue but I’m not sure. I’ve had issues like this solved with DTS before, but that isn’t allowed any more. Any help would be greatly appreciated.
3
0
322
Jan ’25
Xcode AI Coding Assistance Option(s)
Not finding a lot on the Swift Assist technology announced at WWDC 2024. Does anyone know the latest status? Also, currently I use OpenAI's macOS app and its 'Work With...' functionality to assist with Xcode development, and this is okay, certainly saves copying code back and forth, but it seems like AI should be able to do a lot more to help with Xcode app development. I guess I'm looking at what people are doing with AI in Visual Studio, Cline, Cursor and other IDEs and tools like those and feel a bit left out working in Xcode. Please let me know if there are AI tools or techniques out there you use to help with your Xcode projects. Thanks in advance!
6
0
3.1k
3d
Converted Model Preview Issues in Xcode
Hello! I have a TrackNet model that I have converted to CoreML (.mlpackage) using coremltools, and the conversion process appears to go smoothly as I get the .mlpackage file I am looking for with the weights and model.mlmodel file in the folder. However, when I drag it into Xcode, it just shows up as 4 script tags (as pictured) instead of the model "interface" that is typically expected. I initially was concerned that my model was not compatible with CoreML, but upon logging the conversions, everything seems to be converted properly. I have some code that may be relevant in debugging this issue: How I use the model: model = BallTrackerNet() # this is the model architecture which will be referenced later device = self.device # cpu model.load_state_dict(torch.load("models/balltrackerbest.pt", map_location=device)) # balltrackerbest is the weights model = model.to(device) model.eval() Here is the BallTrackerNet() model itself: import torch.nn as nn import torch class ConvBlock(nn.Module): def __init__(self, in_channels, out_channels, kernel_size=3, pad=1, stride=1, bias=True): super().__init__() self.block = nn.Sequential( nn.Conv2d(in_channels, out_channels, kernel_size, stride=stride, padding=pad, bias=bias), nn.ReLU(), nn.BatchNorm2d(out_channels) ) def forward(self, x): return self.block(x) class BallTrackerNet(nn.Module): def __init__(self, out_channels=256): super().__init__() self.out_channels = out_channels self.conv1 = ConvBlock(in_channels=9, out_channels=64) self.conv2 = ConvBlock(in_channels=64, out_channels=64) self.pool1 = nn.MaxPool2d(kernel_size=2, stride=2) self.conv3 = ConvBlock(in_channels=64, out_channels=128) self.conv4 = ConvBlock(in_channels=128, out_channels=128) self.pool2 = nn.MaxPool2d(kernel_size=2, stride=2) self.conv5 = ConvBlock(in_channels=128, out_channels=256) self.conv6 = ConvBlock(in_channels=256, out_channels=256) self.conv7 = ConvBlock(in_channels=256, out_channels=256) self.pool3 = nn.MaxPool2d(kernel_size=2, stride=2) self.conv8 = ConvBlock(in_channels=256, out_channels=512) self.conv9 = ConvBlock(in_channels=512, out_channels=512) self.conv10 = ConvBlock(in_channels=512, out_channels=512) self.ups1 = nn.Upsample(scale_factor=2) self.conv11 = ConvBlock(in_channels=512, out_channels=256) self.conv12 = ConvBlock(in_channels=256, out_channels=256) self.conv13 = ConvBlock(in_channels=256, out_channels=256) self.ups2 = nn.Upsample(scale_factor=2) self.conv14 = ConvBlock(in_channels=256, out_channels=128) self.conv15 = ConvBlock(in_channels=128, out_channels=128) self.ups3 = nn.Upsample(scale_factor=2) self.conv16 = ConvBlock(in_channels=128, out_channels=64) self.conv17 = ConvBlock(in_channels=64, out_channels=64) self.conv18 = ConvBlock(in_channels=64, out_channels=self.out_channels) self.softmax = nn.Softmax(dim=1) self._init_weights() def forward(self, x, testing=False): batch_size = x.size(0) x = self.conv1(x) x = self.conv2(x) x = self.pool1(x) x = self.conv3(x) x = self.conv4(x) x = self.pool2(x) x = self.conv5(x) x = self.conv6(x) x = self.conv7(x) x = self.pool3(x) x = self.conv8(x) x = self.conv9(x) x = self.conv10(x) x = self.ups1(x) x = self.conv11(x) x = self.conv12(x) x = self.conv13(x) x = self.ups2(x) x = self.conv14(x) x = self.conv15(x) x = self.ups3(x) x = self.conv16(x) x = self.conv17(x) x = self.conv18(x) # x = self.softmax(x) out = x.reshape(batch_size, self.out_channels, -1) if testing: out = self.softmax(out) return out def _init_weights(self): for module in self.modules(): if isinstance(module, nn.Conv2d): nn.init.uniform_(module.weight, -0.05, 0.05) if module.bias is not None: nn.init.constant_(module.bias, 0) elif isinstance(module, nn.BatchNorm2d): nn.init.constant_(module.weight, 1) nn.init.constant_(module.bias, 0) Here is also the meta data of my model: [ { "metadataOutputVersion" : "3.0", "storagePrecision" : "Float16", "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 256 × 230400)", "shortDescription" : "", "shape" : "[1, 256, 230400]", "name" : "var_462", "type" : "MultiArray" } ], "modelParameters" : [ ], "specificationVersion" : 6, "mlProgramOperationTypeHistogram" : { "Cast" : 2, "Conv" : 18, "Relu" : 18, "BatchNorm" : 18, "Reshape" : 1, "UpsampleNearestNeighbor" : 3, "MaxPool" : 3 }, "computePrecision" : "Mixed (Float16, Float32, Int32)", "isUpdatable" : "0", "availability" : { "macOS" : "12.0", "tvOS" : "15.0", "visionOS" : "1.0", "watchOS" : "8.0", "iOS" : "15.0", "macCatalyst" : "15.0" }, "modelType" : { "name" : "MLModelType_mlProgram" }, "userDefinedMetadata" : { "com.github.apple.coremltools.source_dialect" : "TorchScript", "com.github.apple.coremltools.source" : "torch==2.5.1", "com.github.apple.coremltools.version" : "8.1" }, "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 9 × 360 × 640)", "shortDescription" : "", "shape" : "[1, 9, 360, 640]", "name" : "input_frames", "type" : "MultiArray" } ], "generatedClassName" : "BallTracker", "method" : "predict" } ] I have been struggling with this conversion for almost 2 weeks now so any help, ideas or pointers would be greatly appreciated! Let me know if any other information would be helpful to see as well. Thanks! Michael
1
0
435
Jan ’25
Apple developer program discriminates against races/regions
I have been trying to enroll for the Apple developer program for almost a year now but Apple has been deliberately frustrating my efforts despite providing every requested information and ID. I have provided every single detail and have gotten to payment/purchase twice but Apple refused to debit/process my payments on both occasions. The latest being last week. I have successful $0.00 test transactions from Apple proving that my payment card is valid on Apple. There really isn't any excuse for not allowing me to complete purchase. After that, Apple disabled my enrollment on the web and directed me to restart on the developer mobile app which I still complied with. Yet, after uploading my ID via a link that was sent to me by a certain Jenny from Developer support (eurodev@apple) and filling in my address hoping to finally proceed to purchase, Apple has disabled my enrollment and I see the message "Your enrollment could not be completed. Your enrollment in the Apple Developer Program could not be completed at this time." The web option has also been disabled. No message or explanation was provided. Developer support and Apple support have refused to respond to my many mails since then. It's almost as if they were not expecting me to meet their requirements as EVERY SINGLE STEP has been met with some sort of restriction. I have successfully created and uploaded apps on the Google PlayStore till date using the same details without any hassles. I have no criminal records nor restrictions against my person and neither did Apple indicate anything that could prevent my enrollment so this treatment is distasteful. I believe Apple discriminates against locations because I am African. I doubt if US or European applicants face this type of discriminatory treatment from a supposed multinational corporation. I am not the only African complaining about this treatment too. It is sad because Apple generates revenue from Africa but does not consider us to be relevant enough. Shameful.
0
1
272
Jan ’25
Xcode cloud build hanging at 46 percent, even though all stages have completed successfully
My Xcode cloud pipeline seems to be stuck at 46% inside the archiving step for some reason. When I run my project locally, it works, and uploading my build manually through Xcode to app store connect works too. However, when I try to build my app using Xcode cloud, it gets stuck after the archiving step has successfully completed. All checkmarks are green, but the archiving step does not terminate after one hour. I tried switching the cloud Xcode version, the cloud macOS version, changing my code. Nothing works and Xcode cloud is completely bricked. How do I fix this? There is no error message at all. The build is just stuck at 46% and nothing happens.
1
0
330
Jan ’25
Development and testing on different machines
Hi developers, I'm searching for a kind of way of working to develop my apps on a different machine than testing and final building. For development I have a MacBook Pro m4 and for testing I want to outsource this to a Mac mini m1. I was searching for a solution and also contacted the support, but the answer wasn't really helpful. Any ideas how to setup this configuration to automate this kind of tests? Thanks a lot!
0
0
229
Jan ’25
Xcode 16.2 ncurses no longer works
I have a very large terminal project that relies on the ncurses library. As of the update on Dec. 11, 2024, the ncurses (and forms) API's no longer work when the app is launched from Xcode. If I run the app by double-clicking on the executable from Finder, the API's work as expected - but of course, that does not allow for debugging - which is the purpose of running within Xcode. I have tested on a simple project that simply outputs "Hello World" and waits for the input of CR before ending. What should happen, is that "Hello Word" is output on the terminal, but instead no output occurs. I stress that everything worked prior to the update on Dec.11. The code for main is simply this: #include <iostream> #include "stdlib.h" #include "stdio.h" #ifdef __cplusplus #include <iostream> #endif #include <cassert> #include <ncurses.h> #include <form.h> using namespace std; int main(int argc, const char * argv[]) { // cout << "Hello, World!" << endl; // Basic test initscr(); printw("Hello World !!!"); refresh(); int ch = 0; while (ch != 10) { ch = getch(); } endwin(); return 0; } To link to libncurses.tbd, in Build Phases, add the libncurses.tbd from the list of Frameworks. To output on the terminal, select the Product menu item in Xcode, then Edit Schema. Under the Options tab, change the Console selection to Terminal. When the application runs, the terminal will launch, but no output will occur. I have Googled every topic imaginable for 2 days now but have not come up with a solution. Is there something that I need to update? It looks to me like the libraries have been updated on Dec. 11 as well, but is there something else I need to do? For a more detailed image of one of the many screens I have working prior to this issue:
5
0
332
Jan ’25
iOS 18.3 (22D5040d) Beta internet issues
I have been using US Cellular without any issues, and my previous device worked seamlessly with a stable connection. However, after updating to iOS 18.3 (22D5040d), I have been experiencing significant connectivity problems. In most locations, I have no internet access, and when I do, the speeds are extremely slow, typically around 2 Mbps at best.
2
0
548
Jan ’25
Enrollment Payment Issue for Apple Developer Program
I have been trying for the past month to complete the payment for the Apple Developer Program enrollment. However, every time I attempt the payment, it fails, and my account remains pending. I have tried contacting Apple Support multiple times, and each time a case ID is created, but I do not receive any response. I have also tried using different cards for the payment, but the issue persists. I am attempting to create the account from Bangladesh.
1
0
221
Jan ’25
Empty dSYM file detected & Error: type for self cannot be reconstructed: type for typename
I'm pulling my hair out here with this new Xcode 16, it complains that my app's dSYM is empty though it's clearly not, it's about 25MB. I'm working on a project using an internal static library, everything is built inhouse using swift, we own all the source code. It worked just fine until the other week, when I updated the Xcode, and now I can't debug anything. I keep getting "type for self cannot be reconstructed" when I run "po self.some_property". Why is that? The Debug information Format is set to DWARF with dSYM File for both the executable and lib projects. I've been a Unix guy since before I knew myself and I enjoy fixing things myself, down to bare metal, but man, this bug is driving me crazy. Is it even a bug?? It's the first time in more than 15 years since I started coding on Mac and iPhone when a bug has defeated me. I was always able to fix things using just the documentation and google, but the Apple toolchain is getting worse and worse nowadays. I remember the time when Apple made the complicated things simple, now they make the simple things complicated :( I just split the static lib from the main project one year ago, because of the ridiculously long build time. Should I merge back all the code in a single project? Something seems wrong to me. So I created this account to ask the masters. How can I get back my debug info (and sanity)? Using Xcode 15 is not an option because it doesn't run on Sequoia.
0
0
556
Jan ’25
The build is missing information from the .entitlements file.
I’m trying to fix an issue with a pipeline that automatically distributes an app to the App Store (TestFlight). Unfortunately, universal links don’t work because the .entitlements file in the build doesn’t include the specified associated domains, even though they are defined. I’ve double-checked the certificates, provisioning profiles, and Xcode settings — everything seems correct. Therefore, I assume the issue lies in the build commands, which are as follows: Create Archive xcodebuild -workspace ios/ClientDomain.xcworkspace -scheme ClientDomain archive -sdk iphoneos -configuration ClientDomain -archivePath ios/ClientDomain.xcarchive CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY="Apple Distribution: Company Name (XXXXXXXXXX)" PROVISIONING_PROFILE=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx CODE_SIGNING_ALLOWED=No Export Archive xcodebuild -exportArchive -archivePath ios/ClientDomain.xcarchive -exportPath ios -exportOptionsPlist ios/exportOptions.plist I also want to provide files I use, in order to make sure I don't have any mistakes: ClientDomain.entitlements &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt;com.apple.developer.associated-domains&lt;/key&gt; &lt;array&gt; &lt;string&gt;applinks:www.site.com&lt;/string&gt; &lt;string&gt;webcredentials:www.site.com&lt;/string&gt; &lt;/array&gt; &lt;/dict&gt; &lt;/plist&gt; exportOptions.plist &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt; &lt;dict&gt; &lt;key&gt;destination&lt;/key&gt; &lt;string&gt;export&lt;/string&gt; &lt;key&gt;generateAppStoreInformation&lt;/key&gt; &lt;false/&gt; &lt;key&gt;manageAppVersionAndBuildNumber&lt;/key&gt; &lt;true/&gt; &lt;key&gt;method&lt;/key&gt; &lt;string&gt;app-store-connect&lt;/string&gt; &lt;key&gt;provisioningProfiles&lt;/key&gt; &lt;dict&gt; &lt;key&gt;com.bundle.app&lt;/key&gt; &lt;string&gt;xxxxx-xxxxx-xxxxx-xxxxx-xxxxx&lt;/string&gt; &lt;/dict&gt; &lt;key&gt;signingCertificate&lt;/key&gt; &lt;string&gt;Apple Distribution: Company Name (XXXXXXXXXX)&lt;/string&gt; &lt;key&gt;signingStyle&lt;/key&gt; &lt;string&gt;manual&lt;/string&gt; &lt;key&gt;stripSwiftSymbols&lt;/key&gt; &lt;true/&gt; &lt;key&gt;teamID&lt;/key&gt; &lt;string&gt;XXXXXXXXXX&lt;/string&gt; &lt;key&gt;testFlightInternalTestingOnly&lt;/key&gt; &lt;false/&gt; &lt;key&gt;uploadSymbols&lt;/key&gt; &lt;true/&gt; &lt;/dict&gt; &lt;/plist&gt; I'm curious, how people usually distribute their apps to App Store. What if I do something wrong?
1
0
312
Jan ’25
App build stucks when without internet connection
Due to legal issues, our build machine is not connected to the Internet. We built the app through the "xcodebuild" command, and we have all the supplies for the build without internet connection. Certificate for valid deployment on keychain (including private key) Provisioning Profiles Disable the ability to automatically sign on to build settings. After updating to xcode16.0, I found that the build doesn't work at all. When I checked the release notes(xcod16.0), I saw that the provisioning profile needs to be newly issued and then built. When I issued and built a new provisioning profile, the app build was successful, but we found that it took more than twice the build time. When I look at the build log, it is exposed, and it is estimated that there is a long wait. The stage where this log comes out GatherProvisioningInputs The moment you start exporting after the archive has been completed 1.GatherProvisioningInputs 13-Jan-2025 12:31:13 2025-01-13 12:31:13.072 xcodebuild[36909:161529200] DVTDeveloperAccountManager: Failed to load credentials for CC992AE6-495A-419C-B6B8-65D10F340DAE: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username} 13-Jan-2025 12:31:13 2025-01-13 12:31:13.078 xcodebuild[36909:161529200] DVTDeveloperAccountManager: Failed to load credentials for D604A570-36EF-438B-BDEE-7D097892F46F: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username} 13-Jan-2025 12:31:13 2025-01-13 12:31:13.085 xcodebuild[36909:161529200] DVTDeveloperAccountManager: Failed to load credentials for mymailadress: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for mymailadress, missing Xcode-Token" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for mymailadress, missing Xcode-Token} The moment you start exporting after the archive has been completed 13-Jan-2025 12:39:59 ** ARCHIVE SUCCEEDED ** 13-Jan-2025 12:39:59 13-Jan-2025 12:40:01 2025-01-13 12:40:01.028 xcodebuild[44083:161711515] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/zv/mn5wc_kx19n19vntm4mwqv800000gn/T/NewLotteCard Release_2025-01-13_12-40-01.025.xcdistributionlogs". 13-Jan-2025 12:40:02 2025-01-13 12:40:02.016 xcodebuild[44083:161711515] [MT] IDEDistribution: Command line name "app-store" is deprecated. Use "app-store-connect" instead. 13-Jan-2025 12:40:03 2025-01-13 12:40:03.287 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for CC992AE6-495A-419C-B6B8-65D10F340DAE: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for CC992AE6-495A-419C-B6B8-65D10F340DAE, missing Xcode-Username} 13-Jan-2025 12:40:03 2025-01-13 12:40:03.291 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for D604A570-36EF-438B-BDEE-7D097892F46F: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for D604A570-36EF-438B-BDEE-7D097892F46F, missing Xcode-Username} 13-Jan-2025 12:40:03 2025-01-13 12:40:03.295 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for 7E18031A-9964-4A42-9F5C-6D36B08ACD40: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for 7E18031A-9964-4A42-9F5C-6D36B08ACD40, missing Xcode-Username" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for 7E18031A-9964-4A42-9F5C-6D36B08ACD40, missing Xcode-Username} 13-Jan-2025 12:40:03 2025-01-13 12:40:03.300 xcodebuild[44083:161713365]  DVTDeveloperAccountManager: Failed to load credentials for mymailadress: Error Domain=DVTDeveloperAccountCredentialsError Code=0 "Invalid credentials in keychain for mymailadress, missing Xcode-Token" UserInfo={NSLocalizedDescription=Invalid credentials in keychain for mymailadress, missing Xcode-Token} 13-Jan-2025 12:41:04 2025-01-13 12:41:04.323 xcodebuild[44083:161713365]  IDEDistribution: Failed to log in with account "(null)" while checking for an App Store Connect account (Error Domain=DVTServicesAccountBasedSessionErrorDomain Code=1 "Unable to log in with account ''." UserInfo={NSLocalizedFailureReason=Unable to log in with account ''., NSLocalizedRecoverySuggestion=An unexpected failure occurred while logging in (Underlying error code -1001)., DVTDeveloperAccountErrorAccount=<DVTAppleIDBasedDeveloperAccount: 0x6000037a8e80; username=''>, NSUnderlyingError=0x600003eb9920 {Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x600003ebd290 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <23649340-3ED0-4D97-A0E7-3F46ED30721F>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( 13-Jan-2025 12:41:04 "LocalDataTask <23649340-3ED0-4D97-A0E7-3F46ED30721F>.<1>" 13-Jan-2025 12:41:04 ), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action?clientId=XABBG36SBA, NSErrorFailingURLKey=https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action?clientId=XABBG36SBA, _kCFStreamErrorDomainKey=4}}}) 13-Jan-2025 12:42:05 2025-01-13 12:42:05.319 xcodebuild[44083:161713365]  IDEDistribution: Failed to log in with account "(null)" while checking for an App Store Connect account (Error Domain=DVTServicesAccountBasedSessionErrorDomain Code=1 "Unable to log in with account ''." UserInfo={NSLocalizedFailureReason=Unable to log in with account ''., NSLocalizedRecoverySuggestion=An unexpected failure occurred while logging in (Underlying error code -1001)., DVTDeveloperAccountErrorAccount= The xcode version cannot be updated due to obfuscation solution issues, I would like to ask if you have any ideas. thank you
0
0
287
Jan ’25
Using Swift-Protobuf to extract data
Hi! So I am not really sure how all this works. I want to use realtime data from the trains and buses in Sweden. This is their page: https://www.trafiklab.se/api/ As I understand it I should use GTFS data which come in Protobuf format. I think I must convert the Protobuf-data to Swift code. Not sure if this involves json. One file I have has the extension .pb. I tried to use this page: https://medium.com/@andy.nguyen.1993/protobuf-in-swift-809658ecdb22 When I write this: $ git checkout tags/1.1.1 $ swift build -c release -Xswiftc -static-stdlib I get this error: "error: 'swift-protobuf': the Swift tools version specification is possibly missing a version specifier; consider using '// swift-tools-version: 6.0.3' to specify the current Swift toolchain version as the lowest Swift version supported by the project" As you understand I am really not sure what I'm doing. Maybe there is a better way? Any help would be highly appreciated.
1
0
341
Jan ’25
Fully symbolicate crash log received from App Review
A new app I submitted to review was rejected due to a crash. I cannot reproduce the crash, even running it on exact the same device model used by App Review. So I need to symbolicate the ips crash log they provided me. Using MacSymbolicate and the archive located using Xcode Organizer I was able to partially symbolicate the crash log. To fully symbolicate the crash log, however, according to MacSymbolicate, I would need two more symbol files, which can't be located, because they relate to system frameworks (SwiftData and _SwiftData_SwiftUI). I have tried to follow the instructions provided on https://developer.apple.com/documentation/xcode/adding-identifiable-symbol-names-to-a-crash-report but I had no success. It seems to me that the instructions contained there for symbolicating using Xcode do not apply for crash logs downloaded from appstoreconnect after an App Review rejection. Also, the instructions seem to be out of date, e.g. "To symbolicate in Xcode, click the Device Logs button in the Devices and Simulators window.": This button was replaced by "Open Recent Logs", which opens what seems to be a different window (according to some online research). Is it possible to fully symbolicate such an ips file downloaded from App Review team? If so, how can this be achieved? Thanks This is how the partially symbolicated crash log looks like: Hardware Model: iPad13,16 ... AppStoreTools: 16C5031b Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] ... OS Version: iPhone OS 18.2.1 (22C161) Release Type: User Report Version: 104 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x000000018c100e2c Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [6226] Triggered by Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libswiftCore.dylib 0x18c100e2c _assertionFailure(_:_:file:line:flags:) + 264 1 SwiftData 0x24fa6f3b4 0x24fa4a000 + 152500 ... 14 SwiftData 0x24fa89700 0x24fa4a000 + 259840 15 _SwiftData_SwiftUI 0x250cd34e4 0x250cce000 + 21732 16 _SwiftData_SwiftUI 0x250cd1364 0x250cce000 + 13156 17 *** 0x10451f7ac closure #1 in closure #2 in closure #1 in PaymentsMonthView.body.getter (in ***) (PaymentsMonthView.swift:119) + 1324972 18 *** 0x10451ea14 closure #1 in PaymentsMonthView.body.getter (in ***) (PaymentsMonthView.swift:99) + 1321492 19 SwiftUICore 0x24fd5d304 specialized ViewBodyAccessor.updateBody(of:changed:) + 1240 20 SwiftUICore 0x24fd5cd4c closure #1 in DynamicBody.updateValue() + 600 21 SwiftUICore 0x24fd5c008 DynamicBody.updateValue() + 928 ... ... Thread 0 crashed with ARM Thread State (64-bit): x0: 0x000000011128b208 x1: 0x0000000200000003 x2: 0x0000000000000001 x3: 0x00000001130be744 x4: 0xfffffffffe1cd413 x5: 0x0000000000000013 x6: 0x0000000000000020 x7: 0x00000000000007fc x8: 0xfffffffe00000000 x9: 0x0000000200000003 x10: 0x0000000000000003 x11: 0x0000000000000000 x12: 0x00180080004019e0 x13: 0x00100000004017fc x14: 0x00000001046d23e0 x15: 0x00000000000001e0 x16: 0x952d0001130bde00 x17: 0x00000000020007fc x18: 0x0000000000000000 x19: 0x000000024fb661e0 x20: 0x000000011128b200 x21: 0x0000000000000000 x22: 0x000000000000000b x23: 0x000000000000001d x24: 0x0000000000000040 x25: 0x000000024fb64790 x26: 0xf000000000000977 x27: 0x0000000000000000 x28: 0x000000024fb64750 fp: 0x000000016ba188f0 lr: 0x000000018c100e2c sp: 0x000000016ba18820 pc: 0x000000018c100e2c cpsr: 0x60001000 far: 0x0000000000000000 esr: 0xf2000001 (Breakpoint) brk 1 Binary Images: 0x1043dc000 - 0x104633fff Locador arm64 <78fc8961d731321ba0c8f9bb051109c5> /private/var/containers/Bundle/Application/FE1C10C5-49C1-4022-860A-6C3515E2F8BB/Locador.app/Locador 0x1047fc000 - 0x104807fff libobjc-trampolines.dylib arm64e <be05652226b13a508ad193ac99fcdc9c> /private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib 0x18c0c9000 - 0x18c66afff libswiftCore.dylib arm64e <e9b1dc6b7fef3bbbb083f4e8faaa53df> /usr/lib/swift/libswiftCore.dylib 0x24fa4a000 - 0x24fb88ff7 SwiftData arm64e <90275b26954b349996ff44ada39f0358> /System/Library/Frameworks/SwiftData.framework/SwiftData 0x250cce000 - 0x250cebff8 _SwiftData_SwiftUI arm64e <d250fe30854c3f1c85fc8a89dec5d484> /System/Library/Frameworks/_SwiftData_SwiftUI.framework/_SwiftData_SwiftUI 0x24fcf8000 - 0x2508d4fff SwiftUICore arm64e <647b91f1620d3741bd708f9f26b5674b> /System/Library/Frameworks/SwiftUICore.framework/SwiftUICore 0x1ba831000 - 0x1ba874fff AttributeGraph arm64e <5eeff865ac123665a9dba9d612eb0e9f> /System/Library/PrivateFrameworks/AttributeGraph.framework/AttributeGraph 0x19220e000 - 0x1934d0fff SwiftUI arm64e <0b283f5831ae385f9c8ff128fd0e30b8> /System/Library/Frameworks/SwiftUI.framework/SwiftUI 0x1902f8000 - 0x19220dfff UIKitCore arm64e <f80c6ee450ca346f90ebbb3da9817503> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore 0x18dadc000 - 0x18e01ffff CoreFoundation arm64e <6a60be13e6573beca9acba239ae29862> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 0x1dacec000 - 0x1dacf4fff GraphicsServices arm64e <f4e7a885f4913721862dc57403f4d821> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices 0x1b3d31000 - 0x1b3db413f dyld arm64e <4eb7459fe23738ce82403f3e2e1ce5ab> /usr/lib/dyld 0x0 - 0xffffffffffffffff ??? unknown-arch <00000000000000000000000000000000> ??? 0x1df105000 - 0x1df13efe3 libsystem_kernel.dylib arm64e <e3965df1a3a3374a94eaf86739c5cc8e> /usr/lib/system/libsystem_kernel.dylib 0x18c6e1000 - 0x18d411fff Foundation arm64e <7274dde368d634a08e677726e1265e80> /System/Library/Frameworks/Foundation.framework/Foundation 0x2185fc000 - 0x218608ff3 libsystem_pthread.dylib arm64e <b2fe0dfa67de3d7282676c42073e0e8d> /usr/lib/system/libsystem_pthread.dylib 0x1958ce000 - 0x19594dffb libsystem_c.dylib arm64e <8d425c7257c93e54a1e1e243cbdfc446> /usr/lib/system/libsystem_c.dylib EOF
2
0
244
Jan ’25