Post

Replies

Boosts

Views

Activity

NSItemProvider throwing exception related to secure coding
Our app has a share extension. And we recently noticed something with iOS 17.3.1. From Safari, when we receive the plist and try to load it, we are seeing exceptions for classes not allowed to be unarchived. [itemProvider loadItemForTypeIdentifier:[UTTypePropertyList identifier] options:nil completionHandler:^(NSDictionary *jsDict, NSError *error) { } We see these exceptions: value for key 'NS.keys' was of unexpected class 'NSString' (0x1ee7d2970) [/System/Library/Frameworks/Foundation.framework]. Allowed classes are: {( "'NSDictionary' (0x1ee7cad38) [/System/Library/Frameworks/CoreFoundation.framework]" )} (null) Our preprocessing javascript file is basic, and only passes a title and URL as part of the payload. arguments.completionFunction({ "URL": document.URL "title": document.title, });
27
0
3.4k
Nov ’24
Xcode Beta Simulator on Mac OS Ventura Often Needs to Restart
Noticing that the simulator is often in some state that requires it to Quit and restart it. I often do this: CMD+R to run. Make changes. CMD+R to run (overwrite the existing session). The app (kinda) quits, but the screen is completely black. Like the app hasn't completely quit. The result is that Xcode just constantly says "Launching [App]...". And I have to quit the simulator.
17
9
6.2k
Aug ’23
iOS 16 Beta Vertically Aligns Navigation Bar Title View Differently with Right Bar Items
On iOS 16, I noticed that the navigation bar title view is being aligned vertically to the top, I cannot figure out why. The odd thing is that some view controllers are fine (it's centered vertically). But some it's top aligned. I thought maybe it had something to do with right/left bar button items, but after playing around with it - it doesn't seem to matter. Is there some change in UIKit that is causing this? Centered (In view controller A): Top Aligned (In view controller B): My component is the same in all cases where this heart graphic is - it's a subclass of UIImageView that sets the image to the heart.
Topic: UI Frameworks SubTopic: UIKit Tags:
9
2
5.3k
Nov ’22
Warning: Error creating LLDB target at path. the specified architecture 'arm64-*-*' is not compatible with 'x86_64-apple-ios13.2.0-simulator'
Every time my app runs in the simulator I see this error: Warning: Error creating LLDB target at path '/Users/aaronsmith/Library/Developer/Xcode/DerivedData/Babylist-ahvzjxxrpawwqhecszqeyvjstfca/Build/Products/Debug-iphonesimulator/Babylist.app'- using an empty LLDB target which can cause slow memory reads from remote devices: the specified architecture 'arm64--' is not compatible with 'x86_64-apple-ios13.2.0-simulator' in '/Users/aaronsmith/Library/Developer/Xcode/DerivedData/Babylist-ahvzjxxrpawwqhecszqeyvjstfca/Build/Products/Debug-iphonesimulator/Babylist.app/Babylist' What is this? I'm on an M1, no build issues. It makes me think the simulator is running under rosetta with x68_64. But I didn't choose to do that. Mac OS Ventura. Xcode 14 RC.
5
4
6.3k
Mar ’25
Protocol implementation of a MainActor delegate requires await keyword on initializer in async code
Why does implementing a delegate that has @MainActor declared on it require the object being created to have an "await" keyword? Here's an example: class MyClass : NSObject, UIScrollViewDelegate {     override init() {         super.init()     } } class MyClass2 : NSObject {     override init() {         super.init()     } } class MyTest : BLTestCase {     func xtest_getBrandDataFails() async {         let obj = MyClass(). // expression is async but not marked with await. let obj1 = await MyClass()         let objc2 = MyClass2()     } } UIScrollViewDelegate is declared with @MainActor. And it causes the initialization to require await. That seems odd to me because my init methods aren't marked as async. It's also odd seeing an await or "suspension point" as stated by the swift concurrency chapter in the swift book, but init is synchronous. Would swift concurrency ever suspend execution here? It seems wrong that it would when I know I don't want a suspension point.
1
0
1.4k
Dec ’22
iOS Share Activity - Add Custom Actions
See the image attached. What are the APIs needed to add an action here that shows up across the system. Not a share extension, but the list of actions that are below that. How did Pinterest add theirs here? And it shows up for almost everything you share. I've been looking around and the only thing that looked like maybe is UIActivity. But when I implemented it doesn't show up across other apps. I was also lookin through app shortcut and app intent documentation but I can't find exactly how Pinterest is providing this action here.
1
0
967
Dec ’23
Xcode Macro Code Highlighting - Choosing The Wrong Target
I have two targets: App Share Extension Each has a preprocessor macro: TARGET_IS_APP TARGET_IS_EXTENSION The App target has a dependency on the share extension. Some source files are compiled in both targets, but I use the preprocessor macros to enable/disable code for each target. lately Xcode hasn't been handling the code coloring very well based on the selected build target. I'll be in a file, my selected target is the App, but it will disable the code in the TARGET_IS_APP macro and enable it for share extension. The attached image shows an example. My selected build target/scheme is the App. But it's disabling that code and enabling the share extension. I've double checked the build settings, they are defined in the right targets.
1
3
730
Aug ’24
Back port uniformAcrossSiblings for collection view compositional layout.
This is more of a request I hope y'all will consider. Please back port uniformAcrossSiblings to iOS 13 (or maybe just 15?) (https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/4173072-uniformacrosssiblings) It's like the iOS 9 UIStackView problem. Amazing new feature nobody can use. Has anyone else done this themselves with either custom or subclass UICollectionViewCompositionalLayout?
0
0
545
Dec ’23
NSItemProvider throwing exception related to secure coding
Our app has a share extension. And we recently noticed something with iOS 17.3.1. From Safari, when we receive the plist and try to load it, we are seeing exceptions for classes not allowed to be unarchived. [itemProvider loadItemForTypeIdentifier:[UTTypePropertyList identifier] options:nil completionHandler:^(NSDictionary *jsDict, NSError *error) { } We see these exceptions: value for key 'NS.keys' was of unexpected class 'NSString' (0x1ee7d2970) [/System/Library/Frameworks/Foundation.framework]. Allowed classes are: {( "'NSDictionary' (0x1ee7cad38) [/System/Library/Frameworks/CoreFoundation.framework]" )} (null) Our preprocessing javascript file is basic, and only passes a title and URL as part of the payload. arguments.completionFunction({ "URL": document.URL "title": document.title, });
Replies
27
Boosts
0
Views
3.4k
Activity
Nov ’24
Xcode Beta Simulator on Mac OS Ventura Often Needs to Restart
Noticing that the simulator is often in some state that requires it to Quit and restart it. I often do this: CMD+R to run. Make changes. CMD+R to run (overwrite the existing session). The app (kinda) quits, but the screen is completely black. Like the app hasn't completely quit. The result is that Xcode just constantly says "Launching [App]...". And I have to quit the simulator.
Replies
17
Boosts
9
Views
6.2k
Activity
Aug ’23
iOS 16 Beta Vertically Aligns Navigation Bar Title View Differently with Right Bar Items
On iOS 16, I noticed that the navigation bar title view is being aligned vertically to the top, I cannot figure out why. The odd thing is that some view controllers are fine (it's centered vertically). But some it's top aligned. I thought maybe it had something to do with right/left bar button items, but after playing around with it - it doesn't seem to matter. Is there some change in UIKit that is causing this? Centered (In view controller A): Top Aligned (In view controller B): My component is the same in all cases where this heart graphic is - it's a subclass of UIImageView that sets the image to the heart.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
9
Boosts
2
Views
5.3k
Activity
Nov ’22
Warning: Error creating LLDB target at path. the specified architecture 'arm64-*-*' is not compatible with 'x86_64-apple-ios13.2.0-simulator'
Every time my app runs in the simulator I see this error: Warning: Error creating LLDB target at path '/Users/aaronsmith/Library/Developer/Xcode/DerivedData/Babylist-ahvzjxxrpawwqhecszqeyvjstfca/Build/Products/Debug-iphonesimulator/Babylist.app'- using an empty LLDB target which can cause slow memory reads from remote devices: the specified architecture 'arm64--' is not compatible with 'x86_64-apple-ios13.2.0-simulator' in '/Users/aaronsmith/Library/Developer/Xcode/DerivedData/Babylist-ahvzjxxrpawwqhecszqeyvjstfca/Build/Products/Debug-iphonesimulator/Babylist.app/Babylist' What is this? I'm on an M1, no build issues. It makes me think the simulator is running under rosetta with x68_64. But I didn't choose to do that. Mac OS Ventura. Xcode 14 RC.
Replies
5
Boosts
4
Views
6.3k
Activity
Mar ’25
Protocol implementation of a MainActor delegate requires await keyword on initializer in async code
Why does implementing a delegate that has @MainActor declared on it require the object being created to have an "await" keyword? Here's an example: class MyClass : NSObject, UIScrollViewDelegate {     override init() {         super.init()     } } class MyClass2 : NSObject {     override init() {         super.init()     } } class MyTest : BLTestCase {     func xtest_getBrandDataFails() async {         let obj = MyClass(). // expression is async but not marked with await. let obj1 = await MyClass()         let objc2 = MyClass2()     } } UIScrollViewDelegate is declared with @MainActor. And it causes the initialization to require await. That seems odd to me because my init methods aren't marked as async. It's also odd seeing an await or "suspension point" as stated by the swift concurrency chapter in the swift book, but init is synchronous. Would swift concurrency ever suspend execution here? It seems wrong that it would when I know I don't want a suspension point.
Replies
1
Boosts
0
Views
1.4k
Activity
Dec ’22
iOS Share Activity - Add Custom Actions
See the image attached. What are the APIs needed to add an action here that shows up across the system. Not a share extension, but the list of actions that are below that. How did Pinterest add theirs here? And it shows up for almost everything you share. I've been looking around and the only thing that looked like maybe is UIActivity. But when I implemented it doesn't show up across other apps. I was also lookin through app shortcut and app intent documentation but I can't find exactly how Pinterest is providing this action here.
Replies
1
Boosts
0
Views
967
Activity
Dec ’23
Xcode Macro Code Highlighting - Choosing The Wrong Target
I have two targets: App Share Extension Each has a preprocessor macro: TARGET_IS_APP TARGET_IS_EXTENSION The App target has a dependency on the share extension. Some source files are compiled in both targets, but I use the preprocessor macros to enable/disable code for each target. lately Xcode hasn't been handling the code coloring very well based on the selected build target. I'll be in a file, my selected target is the App, but it will disable the code in the TARGET_IS_APP macro and enable it for share extension. The attached image shows an example. My selected build target/scheme is the App. But it's disabling that code and enabling the share extension. I've double checked the build settings, they are defined in the right targets.
Replies
1
Boosts
3
Views
730
Activity
Aug ’24
App Review Delay
Anyone know of some delays happening with reviews? Been almost four days of "Waiting for Review" which is not typical. Usually I see 1 MAYBE 2 days.
Replies
0
Boosts
0
Views
826
Activity
Sep ’22
Back port uniformAcrossSiblings for collection view compositional layout.
This is more of a request I hope y'all will consider. Please back port uniformAcrossSiblings to iOS 13 (or maybe just 15?) (https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/4173072-uniformacrosssiblings) It's like the iOS 9 UIStackView problem. Amazing new feature nobody can use. Has anyone else done this themselves with either custom or subclass UICollectionViewCompositionalLayout?
Replies
0
Boosts
0
Views
545
Activity
Dec ’23
API For TestFlight Internal Tester Only Builds
WWDC announced this new feature where you can distribute builds that are only for testing, not to be submitted to the App Store. Is there a way via the API to do this? It's available in Xcode distribution window, but that's not helpful for automation.
Replies
0
Boosts
0
Views
673
Activity
Mar ’24