Post

Replies

Boosts

Views

Activity

Does iOS 16 Developer Mode force our hand to use Xcode 14?
Curious as to what others have done regarding iOS 16 developer mode where you need to, for now, keep on using Xcode 13.x I'm specifically speaking to the final release version of iOS 16. Did you install Xcode 14 just to enable developer mode on those iOS 16 devices, then switch back to using Xcode 13? Can Xcode 13 install apps onto iOS 16 devices in this scenario? Or, are we ultimately forced to use Xcode 14 once our devices are on iOS 16? Thank you.
0
0
646
Sep ’22
I would avoid Xcode 14 (seems to have corrupted my system)
A few days ago I used Xcode 14 Beta to gather some build timings for three of my projects. That went well. I then went back to using Xcode 13.4.1, but found that two of those three projects would immediately crash Xcode when I opened them. Also started to have crashes in other projects when debugging (single clicks into the debugging panel or even trying to resize Xcode windows would crash it). Deleting Xcode 14 and 13.4.1 and re-installing just 13.4.1 didn't fix the issue. Even after reboots and purging all Derived Data. I'm now deleting anything developer related (e.g. /Library/Developer), going to reboot, install Xcode 13.4.1 fresh and hope for the best. Earlier I also tried re-installing 13.4, but the same issues were experienced with that. Actually, after scrubbing my system, I may just go back to Xcode 13.3 and should that prove stable, then perhaps move to 13.4.x. I'm assuming that running Xcode 14 is what hosed my system and that it's not a fault of 13.x which I've used without issue prior.
15
3
6.2k
Jun ’22
Custom SF Symbols with Illustrator
Anyone successful in creating custom SF Symbols with Adobe Illustrator? I've been starting with a variable template, and moving margins mostly works, but if I then attempt to center artwork, it leads the resultant SVG as not being usable by SF Symbols app. Specifics... I want one of my apps that uses icons for table view cells, to switch over to SF symbols. For most, I could take advtange of an Apple-supplied one. However, due to each symbol having a different margins, this leads to textual content in the cells not all being aligned. So I thought I would copy the symbols as all being custom, exporting as a variable template, and adjusting the margins in Illustrator such that all margins were the same. I also just tried a trial of Sketch. And while that didn't mess up the SVG, the feature set is too limited for my needs. One other thing I just tried in Illustrator was starting with a variable template, deleting all three symbols, adjusting the margins to be on integral pixel boundaries, and then centering a simple square path in each area. Importing back into SF symbols though shows my square non-centered. It shouldn't be this difficult.
2
0
1.5k
May ’22
iTunes Connect completely broken
Logged in today to iTunes Connect and am greeted with a 'Get Started with iTunes Connect' page. Several icons (e.g. Apps). Clicking on Apps does nothing. Opening a browser tab to developer.apple.com, then going into the Account section does bring up my account (already logged in). So the login above worked. Anyone else seeing this?
6
0
2.8k
Apr ’21
UISplitViewController broken when in tab view controllers
I'm trying to rebasline my app to iOS 14. My app's main entry point for the UI is a tab view controller. Three of its four children are then split view controllers. I configured those to 'all visible'. On iPad, this shows both master/detail at all times and on iPhone, you get the collapsed behavior. Just like the Settings app. Anyhow, I've removed the deprecations and migrated the split view controllers to use the new properties: Style of "Double Column", Display Mode of "One Column Beside", and Behavior of "Tile". On iPad, the split view controllers will always be collapsed as if they are running on a compact device. If I make a sample project with the same exact split view controller (along with its configuration as above), but make this SVC the main entry point of the app, all is well on both iPad and iPhone. Collapsed interface only happens on iPhone (compact). But when I change the sample project to have the SVC now a child of a tab view controller, it breaks (always collapsed on all devices). Why? Hoping this is a bug and not Apple changing the requirements of what a SVC can be placed inside of. No mention of that in the documentation; just states not to put a SVC inside a navigation controller which I'm not. If I can no longer do this, the entire UI and flow of my app is ruined.
3
0
2.6k
Apr ’21
Anyone successful in moving small to medium apps to SwiftUI?
I like SwiftUI overall and my minimum OS is now iOS 14 / iPadOS 14. Thus, I can use all of what SwiftUI currently has to offer. However, I'm finding some missing pieces that are beginning to pile up. e.g. flashing the scroll indicators is not happening automatically, and I see no way to do so with any scrollable content (e.g. list). No way to specify the size of sheets (e.g. formSheet). And other issues. Thus, before I invest too much time with SwiftUI rewrites, have others been successful with SwiftUI (say for small to medium sized apps)? Or are you sticking with UIKit, AppKit for now? Are you finding similar missing items? Are those trivial though in your eyes, and you chose to just press forward with SwiftUI?
6
0
1.7k
Mar ’21
Anyone successful with shared SwiftUI views?
I'm beginning to wonder just how viable SwiftUI is for apps. Keep running into serious issues. For example, I have several existing UIKit apps. All have the same exact about screen. I created a storyboard with the UI along with a view controller .swift file that can be added to all my projects via simple file reference. In trying to do the same with SwiftUI, I created an AboutView.swift file that lives outside the project's folder hierarchy: Common Views AboutView.swift MyApp MyApp.xcodeproj Views (folder/file reference here for Common items) ... In my app project, I just dragged in the dependent AboutView.swift file. Xcode (12.4) refuses to generate a preview though for AboutView. Giving me "Cannot preview in this file - active scheme does not build this file". That is false, when adding AboutView to the project, I included it in the app and UITest targets. If I copy AboutView into the project (now just another local source file specific to that project), previews work again. I refuse to have twelve copies of these shared files; one per project! I also tried folder references (e.g. dragging in that Common folder above). Same issue. Tried a workspace that contained my app project and a simple project with my common views. Same issue. Didn't even try local packages due to those failing miserably for me (separate thread on this forum with all those issues). Side note: Building and running the app works great, it shows my about screen. How is one supposed to be able to create a SwiftUI view and shared it across two or more projects? Why can't these be previewed? Each of my apps Assets.xcassets contains a Logo asset that is used in the about screen, so would be nice to see it in a preview and not have to rely on running the app in the simulator or on a device. Finally, I'm thinking that Xcode can only generate previews of SwiftUI views in a project IFF their files are direct decendents on the project file's main folder on disk. Is that true? If so, why?
5
0
2.0k
Feb ’21
Anyone successful with local Swift packages?
I've been trying all morning to get a trivial Swift package (local) working. I'm using macOS 11.2 with Xcode 12.4 on an iMac Pro. In all cases, I'm left with a compile error of Module 'MyPackage' has no member named 'some symbol'. Setup: Simple iOS single view app. Swift package with a simple Utility class with a static func named doWork that just prints a message. I've of course imported my package in the app's file where I need to use the utility function. What I've tried... Created a standalone Swift Package first. Then, the app project and dragged the Swift Package into it. As above but with a workspace instead of a project. Started with just an app project. Created my Utility.swift file in that project. Then, created the Swift package and dragged that Utility.swift file into the package's main source folder. This is basically what is demoed in "Creating Swift Packages" (WWDC 2019). During the first part showing how to create a local package. As with #3, but started with a workspace first. Other issues I'm seeing... For the cases where I start first with a package, then create a project and drag that project into it (always at the top-level), the package contents are hidden (no disclosure triangle). Closing the Xcode app project and re-opening now lets you view the package contents. After adding the package as well as setting up a dependency to it in my app target settings, when compiling, it first errors on my import MyPackage line. A clean build resoves that issue, but even though the app source can definitely "see" the module now, all symbols within that module error (no member named). Even fully resolving things fails. e.g. MyPackage.Utility.doWork()
0
0
709
Feb ’21
Alerts and Action Sheets not using SwiftUI accent color
I'm rebaselining my apps to require iOS 14. As such, I'm moving completely to SwiftUI to include no longer using UIKit for the application delegate logic. Previously, in my app delegate, I would use the appearance proxy APIs to set up tint colors for various bars, switches, etc. as well as to set the tint color on my main window. So all the app's UI to include buttons on alerts and action sheets, would be using my custom color. In my SwiftUI app, I have filled in the color swatches for the AccentColor item in my xcassets file. I have all four swatches filled: light vs. dark, normal vs. high contrast. This works perfectly for any view controller in my app. Navigation and tab bar elements, etc. all have my accent color. However, when presenting an alert or action sheet, they are using the default system blue colors. I don't see any way to assign accent/tint colors directly to the alerts/action-sheets. Is this not possible?
6
2
6.3k
Feb ’21
Missing Xcode 12.1 from the 'More' downloads
I cannot rely upon the Mac App store for Xcode. All throughout the 11.x releases, those releases were added to the More section within 24 hours. For 12.x, they don't show up; sometimes for several days. For 12.1 (released to Mac App Store on Oct 20th), it's still not available for download directly. I've raised a ticket with Apple for 12.0 and now 12.1. 12.0 did get resolved, but I never heard back any response to my ticket. So adding a note here just in case any Apple engineers can see about getting this download squared-away. For reference: https://developer.apple.com/download/more/
1
0
742
Oct ’20
Protocol Oriented Design video deleted?
Prior to WWDC 2020, the excellent 2015 video on Protocol Oriented Design was still available. The initial version of the developer app also had that video, so I favorited that along with some others. App update though deleted those favorites. But the videos still available via the web (WWDC 2015, etc sections) Recently even the web no longer has that video and a few others. What gives?
0
0
349
Jul ’20
Possible to re-use an app name?
At my day job, we have an app no longer in the store. But in iTunes Connect (App Connect), we still have an entry for it. For the sake of discussion, the name is "Foo" and has a bundle ID of a.b.cWe are creating a brand new app (so different bundle ID d.e.f) and want to re-use this "Foo" app name. Can we delete the original app in iTunes Connect, then add a new one with the same name?We don't want to simply re-use the existing app/bundleID since this new app is totally different and want to start anew with version 1.0.Anyone do something similar?I don't want to delete the original app only to find out we cannot re-use that name.Thank you.
6
0
1.7k
Apr ’20
Custom control in iOS 13 modal screens cancels touch
I have a custom control (a directional button with four parts; up, down, left, right) that uses beginTracking, continueTracking, etc.When this control is in a modal view controller on iOS 13, any initial taps on the control work well, but after moving the touch even a small amount, cancelTracking is called.While I can set the view controller to go full-screen, I'd like to keep the iOS 13 behavior of being able to dismiss it with the gesture. But it seems that that gesture is overriding any tracking of a control. The control is set to have isExclusiveTouch to 'true'.NOTE: This also happens with standard iOS controls. e.g. a standard button. Touch the button and all is well. But once you track outside the button, it starts moving the view controller.
2
0
993
Feb ’20