Post

Replies

Boosts

Views

Activity

iPadOS 15 bug : NavigationBar exposed by SwiftUI Hosting
I have found a bug in iPadOS 15 in a UIKit app that is a legacy Objective-C app. This app has full screen presentation and uses UINavigationView at the top level, from the UIApplicationDelegate. In the UIApplicationDelegate the UINavigationBar is hidden, and does not become visible again in the app. This app has functioned correctly for years, but recently I decided to try adding a hosted SwiftUI view as a view controller component. The way this works is that I create a Container view controller that hosts the SwiftUI UINavigationController - ParentUIViewController - ContainerUIViewController - HostingViewController - SwiftUI View. The ContainerUIViewController contains logic for instantiating the hosted SwiftUI view and performing correct child view controller insertion and removal from the container. This worked on iPadOS 14, but on iPadOs 15 the presentation of the hosted SwiftUI view causes the NavigationBar to appear. Once presented it cannot be hidden by commands to hide the bar on any of the views in the hierarchy, it is persistent. I've tried hiding on the SwiftUI hosted view, and on the container and everywhere I can see that makes sense. It will take some time to create a sample app so I can send this to Apple as a defect, if anyone in the meantime has come across this or has a solution that would be great as I'll need to switch back to UIKit for all my view controllers if this is not resolvable without an iPadOS upgrade.
1
0
991
Oct ’21
Xcode 12.1 Command PhaseScriptExecution failed with a nonzero exit code
Working with Catalina : 10.15.7 Xcode 12.1 (12A7403) Everything has been working fine, then quite randomly I started getting this error, I have not been changing any script or build settings, just writing Swift code. Then I get this error. With this message /bin/sh -c /Users/paul/Library/Developer/Xcode/DerivedData/MyApp-dvgzffodquwdbzcirkguqcsshyys/Build/Intermediates.noindex/Foliobook.build/Debug-iphoneos/MyApp.build/Script-DA29D50E1BFDDC03008D6B47.sh The file couldn’t be saved. Command PhaseScriptExecution failed with a nonzero exit code The file couldn’t be saved. I've tried the obvious things, removing derived data, checking that the disk has enough space (64Gb) restarting Xcode, restarting the machine. Locking and unlocking the keychain. Sacrificing a small mammal to the swift gods... still no change The message 'the file couldn't be saved' makes me think of permissions or some kind of resource limitation, but I don't know which file is being referred to. I also get after this Generate MyApp.app.dSYM 1.2 seconds Which implies the output was created.
1
0
9.6k
Oct ’20
BugbreakAR does not compile, DebugModelComponent missing
I downloaded the code sample titled "Creating a game with scene understanding" related to the WWDC-20 session on advances in RealityKit. I have the latest beta of XCode-12, but the sample code will not compile and I get the error "Cannot find type 'DebugModelComponent' in scope Indeed this is not found in a project wide search, and it is not a part of RealityKit. The only reference to it is in RealityKit+Helpers.
1
0
745
Sep ’20