Post

Replies

Boosts

Views

Activity

iOS 16.0 does not allow arbitrary UIPickerView heights
I have a Swift 5 iOS project in XCode 13.4 containing a View Controller with 5 UI PickerView controls, each with height set to 74 using Interface Builder. The view controller is shown as a popover. When I run the project using an iOS 15.5 simulator, the UIPickerViews appear as designed. When I use an iOS 16.0 simulator I see 5 console messages of the form [UIPickerView setFrame:]: invalid size {204,74} pinned to {204,162} and the UIPickerViews are much larger and their arrangement is not as designed. Has iOS 16.0 returned to only allowing a small number of UIPickerView heights rather than allowing an arbitrary height?
4
4
2.4k
Nov ’22
App Store Connect App Version filter greyed out
When viewing total downloads for an App in App Store Connect App Analytics, the option to filter Total Downloads by version is greyed out when clicking Add Filter even though the app has had a version change 1 week ago as shown in the App Store Version history. The version option is greyed out when running App Store Connect from Windows (using Firefox) and from a Mac (using Safari)
7
4
3.5k
Nov ’23
iOS App does not appear in App Store search results
I have an new iOS app called CaptionEdit. I have set a number of different keywords for it in App Store Connect including 'caption photos' and 'add text to photos'. However, if I type either of these these phrases into the iOS App Store search box, my app does not appear in the 150+ results at all, even though the bottom-ranking apps (like mine) have no ratings or reviews. App Store connect indicates that my app has had 29 downloads over the past month and 5 over the past 7 days. Is the absence of my app in search results from a keyword due to apps requiring a minimum number of downloads over an averaging period to even appear in keyword search results? (The app does appear if use the app name as a search term).
1
1
1.1k
Nov ’22
Cannot create Swift scratch context (couldn't create a ClangImporter)
I'm getting the error "Cannot create Swift scratch context (couldn't create a ClangImporter)" when running a Swift project in XCode 12.3 on Catalina when I try to use the debugger. There is a resolution of this problem described at https://forums.raywenderlich.com/t/entering-debugger-in-swift-project-couldnt-create-a-clangimporter/130829 but I don't understand the fix of "removing zsh customisations in dotfiles". Can anyone explain what the files to change are and how they have to be changed? (I'm new to Mac development)
3
0
3k
Jan ’23
Exception SIGABRT encountered in App Store review
After submitting my app for review, I received a rejection on account of it crashing in MacOS 12.4 environment. The Objective-C app was developed in MacOS 12.4 and the app runs OK in Xcode and as a standalone executable. The crash log shows the exception type as SIGABRT and documentation. indicates that the crash may arise from an uncaught exception. Part of the crash log is shown below. How can I find out where the problem is occurring in my code? Application Specific Backtrace 0: 0 CoreFoundation 0x00000001b15e5198 __exceptionPreprocess + 240 1 libobjc.A.dylib 0x00000001b132fe04 objc_exception_throw + 60 2 CoreFoundation 0x00000001b150cc98 -[__NSArrayM copyWithZone:] + 0 3 Caption Pro 0x000000010259db78 Caption Pro + 105336 4 Caption Pro 0x000000010259cc58 Caption Pro + 101464 5 Caption Pro 0x000000010259c720 Caption Pro + 100128 6 CoreFoundation 0x00000001b1558854 -[NSSet makeObjectsPerformSelector:] + 216 7 AppKit 0x00000001b40a678c -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1080 8 AppKit 0x00000001b409aa70 loadNib + 416 9 AppKit 0x00000001b4099fa0 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 800 10 AppKit 0x00000001b4099ba4 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 220 11 AppKit 0x00000001b4099974 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 388 12 AppKit 0x00000001b408b740 NSApplicationMain + 576 13 dyld 0x00000001027c508c start + 520 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x1b1462d98 __pthread_kill + 8 1 libsystem_pthread.dylib 0x1b1497ee0 pthread_kill + 288 2 libsystem_c.dylib 0x1b13d2340 abort + 168 3 libc++abi.dylib 0x1b1452b08 abort_message + 132 4 libc++abi.dylib 0x1b1442950 demangling_terminate_handler() + 336 5 libobjc.A.dylib 0x1b1338320 _objc_terminate() + 144 6 libc++abi.dylib 0x1b1451ea4 std::__terminate(void (*)()) + 20 7 libc++abi.dylib 0x1b1454c1c __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 36 8 libc++abi.dylib 0x1b1454bc8 __cxa_throw + 140 9 libobjc.A.dylib 0x1b132ff6c objc_exception_throw + 420 10 CoreFoundation 0x1b150cc98 -[__NSSingleObjectArrayI objectAtIndex:] + 140 11 Caption Pro 0x10259db78 0x102584000 + 105336 12 Caption Pro 0x10259cc58 0x102584000 + 101464 13 Caption Pro 0x10259c720 0x102584000 + 100128 14 CoreFoundation 0x1b1558854 -[NSSet makeObjectsPerformSelector:] + 216 15 AppKit 0x1b40a678c -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1080 16 AppKit 0x1b409aa70 loadNib + 416 17 AppKit 0x1b4099fa0 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 800 18 AppKit 0x1b4099ba4 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 220 19 AppKit 0x1b4099974 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 388 20 AppKit 0x1b408b740 NSApplicationMain + 576 21 dyld 0x1027c508c start + 520
13
0
3.1k
Aug ’22
Viewing Interface in XCode 12.3
I have downloaded an Objective-C Project CocoaSlideshow which I have modified, built, and run successfully in XCode 12.3 running on Catalina (10.15.7) but I cannot display the interface in XCode. I have created an archive and generated a .dmg file. There is no Main.storyboard file in the project. There is a message Unable to Load revisions at the bottom of the centre and right-hand panels. The Editor menu option does not include the option to display the Assistant Editor. How can I display the interface in this project?
7
0
1.4k
Mar ’21
Screen controls have inverted vertical order
I have an Objective C project for MacOS in XCode 12.3 running on Catalina. A preferences screen shown at run time has started displaying controls in inverted vertical order, as though the Y origin is at the top (as it is for iOS) rather than the bottom (as it is for MacOS). In design view the ordering is correct. How can I fix this problem?
3
0
728
Mar ’21
Error 405 when trying to upload text to create a file
I am trying to create a file from a text string in a web server in a folder C:\inetpub\wwwroot\AlekaConsulting\AlekaConsulting\License using IIS 10.0.14393.0 on a Windows Server 2016 environment using the following Objective-C code on macOS Catalina, but no file is created and the returnString variable contains the error message 405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access. The same error appears if I use PUT rather than POST as HTTPmethod. No verbs are listed in the Request Filtering tab of IIS Manager, which means no verbs are blocked. webDav is not installed as a server feature. Content can be successfully read from files in the specified folder. Is the error connected with the URL being accessed via https? (void) UploadFileContent: (NSString *) fileContent{ NSString *urlString = @"https://captionpro.com.au:444/AlekaConsulting/License"; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request setURL:[NSURL URLWithString:urlString]]; [request setHTTPMethod:@"POST"]; NSMutableData *body = [NSMutableData data]; NSString *boundary = @"---------------------------14737809831466499882746641449"; NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@", boundary]; [request addValue:contentType forHTTPHeaderField:@"Content-Type"]; [body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]]; [body appendData:[[NSString stringWithFormat:@"Content-Disposition: form-data; name=\"parameter1\"\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]]; [body appendData:[[NSString stringWithString:fileContent] dataUsingEncoding:NSUTF8StringEncoding]]; [body appendData:[@"\r\n" dataUsingEncoding:NSUTF8StringEncoding]]; [body appendData:[[NSString stringWithFormat:@"--%@--\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]]; [request setHTTPBody:body]; NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil]; NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding]; NSLog(@"%@", returnString); } fg
4
0
1.9k
Apr ’21
NSSplitView divider not visible
I have an Xcode 12.3 XIB project using Objective C running on Catalina with a panel to which I have added a vertical split view of type NSSplitview using default attributes. The split view divider is not visible when I run the application, but objects placed in each pane of the NSSplitview are. The invisible divider (there is no change in the cursor when moving over where the divider should be) means that NSSplitview does not work. If a create a new XIB project, an NSSplitview control added to a panel is visible OK, so I think there is something about the parent project which is upsetting NSSplitview.
0
0
440
Jul ’21
Cannot show class-level rectangle properties
In an Objective C project for MacOS using XCode 12.3 I define variables of various types including NSRect and CGFloat at the start of a class implementation region so that they are accessible from all methods. When I add a breakpoint in a method, some of the variables can be displayed by hovering the cursor over the variable in the code window or examining the variables window. However, some class-level variables are not shown in the variables window or by hovering over them. Attempting to examine then using po in the debugger console shows an undeclared variable error. Class-level variables of type CGFloat which are assigned are visible but not variables that do not have values assigned. None of the objects class NSRect appearing on the RHS of assignments are visible when hovering over the or by using po in the debugger console.
0
0
564
Aug ’21
Simulators for Swift 5 app
I have a Swift 5 app that I would like to test on an iPad simulator but the only iPad simulator available is iPad (8th generation). I have a 5th generation iPad which is running iPadOS 15.4 which is presumably capable of running a Swift 5 app but its simulator does not appear in the list of possible iOS simulators.
4
0
645
Mar ’22
Cannot copy image and save with modified metadata
I would like to be able to select a photo in iOS using Swift from the Photos library using UIImagePicker and copy all the image (with modified Exif metadata) to a new photo which I save in Photos. If I use UIActivityViewController to choose the save option (from copy/save/assign to contact/print/add to shared album/save to file), the input image Exif metadata is not transferred when I create a new UIimage from the loaded image data with the modified metadata. How can get the image with modified Exif metadata attached to the saved photo?
0
0
681
Apr ’22
Has application toolbar height changed since Catalina?
I have developed a MacOS app with a toolbar in Catalina running on a 2013 Macbook Pro and the toolbar height is sufficient to show all icons in half the screen as shown below: However a user has reported that their toolbar appears as shown below, where the toolbar is reduced in height and the icons so widely spaced that some are not shown and appear as pop-up menu items which are disabled. Is this a consequence of using a newer OS than Catalina? Is there a way of increasing the toolbar height so that all icons are shown in newer versions of MacOS?
0
0
506
May ’22