iOS is the operating system for iPhone.

Posts under iOS tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

iOS 16.0 beta 7 broke Text(Date(), style: .timer) in SwiftUI widgets
Hi, In my apps, the recent iOS 16.0 beta 7 (20A5356a) broke the .timer DateStyle property of the Text view, in a SwiftUI widget. In previous OS and beta, Text(Date(), style: .timer) was correctly displaying an increasing counter. In iOS 6.0 beta 7, Text(Date(), style: .timer) does not update anymore, (and is offset to the left). The other DateStyle (like .offset, .relative, ...) seems to update correctly. Anyone noticed that (very specific) problem ?
38
14
9k
Feb ’24
[WC] WCSession counterpart app not installed BUT IT IS!
Right, this is getting on my nerves now. iOS app installed on iPhone via Xcode. Watch app installed on Watch via Xcode. Both apps are running and are in the foreground. iOS app launches on iPhone and reports: WCSession.isSupported = YES theDelegate.session.isPaired = YES theDelegate.session.watchAppInstalled = NO theDelegate.session.activationState = Activated I press a button in the Watch app. It reports: session == activated and reachable iOS app delegate receives a message from the Watch app: didReceiveMessage (from Watch): message = {     action = giveMeUpdatedItems; } The apps must be installed on the devices in order for the Watch app to have used sendMessage (which is only available if the session is reachable, which it is). iOS app delegate passes that through as a notification to another bit of code that collates the info and sends it back to the Watch app. watchNotificationUpdateData; userInfo = {     action = giveMeUpdatedItems; } That bit of code in the iOS app checks whether we can send data to the Watch app, and doesn't send the data because: WCSession.isSupported = YES theDelegate.session.isPaired = YES theDelegate.session.watchAppInstalled = NO theDelegate.session.activationState = Activated If I remove the check for watchAppInstalled, I get this: Error sending Watch application context: Watch app is not installed. {     NSLocalizedDescription = "Watch app is not installed.";     NSLocalizedRecoverySuggestion = "Install the Watch app."; } I've deleted and reinstalled the app on both devices countless times. I've rebooted the devices, plus the Mac. I've reinstalled Xcode. I've cleaned builds. I've deleted DerivedData. And still it says the companion app isn't installed.
10
3
3.6k
Feb ’24
NWPathMonitor returns .unsatisfied the WiFi is back on simulator
I'm testing network loss handling in my app on the simulator. Turning WiFi OFF triggers pathUpdateHandler with .unsatisfied status. Turning WiFi back to ON triggers pathUpdateHandler with .unsatisfied status again. I noticed that pathUpdateHandler is triggered right after I enabled WiFi, but before WiFi actually connects to the network. When the laptop is actually connected to the WiFi network - pathUpdateHandler isn't triggered, so my app stays in "offline" mode permanently. networkMonitor.pathUpdateHandler = { [weak self] path in guard let self = self else { return } DispatchQueue.main.async { if path.status == .satisfied { self.status = .connected } else { print(path.unsatisfiedReason) self.status = .disconnected } } } monitor.start(queue: queue) networkMonitor is retained by my DIContainer
2
0
2k
Aug ’23
AVSpeechSynthesizer problem in iOS 16 Beta
Setting a voice for AVSpeechSynthesizer leads to an heap buffer overflow. Turn on address sanitizer in Xcode 14 beta and run the following code. Anybody else experiencing this problem, is there any workaround? let synthesizer = AVSpeechSynthesizer() var synthVoice : AVSpeechSynthesisVoice? func speak() { let voices = AVSpeechSynthesisVoice.speechVoices()           for voice in voices {       if voice.name == "Daniel" {    // select e.g. Daniel voice         synthVoice = voice       }     }           let utterance = AVSpeechUtterance(string: "Test 1 2 3")           if let synthVoice = synthVoice { utterance.voice = synthVoice     }           synthesizer.speak(utterance) // AddressSanitizer: heap-buffer-overflow }
12
6
6.1k
Oct ’23
Xcode 14 failed to prepare iOS 15.7 device?
An update to Xcode 14 appeared in the Mac App store today 2022-11-12. After updating Xcode from the App store app on my M1 MacBook, and plugging in an iPad, also updated today 2022-11-12 to iOS 15.7, Xcode says: "Failed to prepare the device for development". A restart of both the Mac and the iPad doesn't fix this issue. Is there a way to get Xcode 14 to debug an 15.7 iPad? Or is a different build required? There also is no 15.7 directory inside Xcode's iPhoneOS DeviceSupport directory.
43
34
22k
4w
UIPrintInteractionController - Print dialog opens then disappears in iOS 16
I'm using UIPrintInteractionController to display the standard printing window to print a PDF file, passed as NSData using 'setPrintingItem'. Everything was working fine until iOS 16. Now when I call 'presentAnimated', the printing window briefly appears before immediately closing again. In the Xcode debug window I see layout constraint errors - see text below. I don't think I can affect the layout constraints of the print controller? 2022-09-13 16:57:43.220970+0100 myiOSApp[11359:185527] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x6000022e23a0 h=--& v=--& UIView:0x7fa0e588e5a0.minX == 0.5 (active, names: '|':UIView:0x7fa0e588bbe0 )>", "<NSAutoresizingMaskLayoutConstraint:0x6000022e3160 h=--& v=--& UIView:0x7fa0e588bbe0.minX == 0 (active, names: '|':UIPrintPreviewPageCell:0x7fa0e588e060 )>", "<NSLayoutConstraint:0x6000022e0f00 UIView:0x7fa0e588e5a0.leading == UIPrintPreviewPageCell:0x7fa0e588e060.leading (active)>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000022e0f00 UIView:0x7fa0e588e5a0.leading == UIPrintPreviewPageCell:0x7fa0e588e060.leading (active)> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful. 2022-09-13 16:57:43.221720+0100 myiOSApp[11359:185527] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x6000022e23a0 h=--& v=--& UIView:0x7fa0e588e5a0.minX == 0.5 (active, names: '|':UIView:0x7fa0e588bbe0 )>", "<NSAutoresizingMaskLayoutConstraint:0x6000022e2fd0 h=--& v=--& UIView:0x7fa0e588e5a0.width == 124.438 (active)>", "<NSAutoresizingMaskLayoutConstraint:0x6000022e3160 h=--& v=--& UIView:0x7fa0e588bbe0.minX == 0 (active, names: '|':UIPrintPreviewPageCell:0x7fa0e588e060 )>", "<NSLayoutConstraint:0x6000022e0fa0 UIView:0x7fa0e588e5a0.trailing == UIPrintPreviewPageCell:0x7fa0e588e060.trailing (active)>", "<NSLayoutConstraint:0x6000022e32a0 'UIView-Encapsulated-Layout-Width' UIPrintPreviewPageCell:0x7fa0e588e060.width == 125 (active)>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000022e0fa0 UIView:0x7fa0e588e5a0.trailing == UIPrintPreviewPageCell:0x7fa0e588e060.trailing (active)> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful. 2022-09-13 16:57:43.232533+0100 myiOSApp[11359:185527] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x6000022e05a0 h=--& v=--& UIView:0x7fa0e5895a60.minX == 0.5 (active, names: '|':UIView:0x7fa0e5891520 )>", "<NSAutoresizingMaskLayoutConstraint:0x6000022e1630 h=--& v=--& UIView:0x7fa0e5891520.minX == 0 (active, names: '|':UIPrintPreviewPageCell:0x7fa0e58902c0 )>", "<NSLayoutConstraint:0x6000022e0500 UIView:0x7fa0e5895a60.leading == UIPrintPreviewPageCell:0x7fa0e58902c0.leading (active)>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000022e0500 UIView:0x7fa0e5895a60.leading == UIPrintPreviewPageCell:0x7fa0e58902c0.leading (active)> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful. 2022-09-13 16:57:43.233227+0100 myiOSApp[11359:185527] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x6000022e05a0 h=--& v=--& UIView:0x7fa0e5895a60.minX == 0.5 (active, names: '|':UIView:0x7fa0e5891520 )>", "<NSAutoresizingMaskLayoutConstraint:0x6000022e0410 h=--& v=--& UIView:0x7fa0e5895a60.width == 124.438 (active)>", "<NSAutoresizingMaskLayoutConstraint:0x6000022e1630 h=--& v=--& UIView:0x7fa0e5891520.minX == 0 (active, names: '|':UIPrintPreviewPageCell:0x7fa0e58902c0 )>", "<NSLayoutConstraint:0x6000022e0690 UIView:0x7fa0e5895a60.trailing == UIPrintPreviewPageCell:0x7fa0e58902c0.trailing (active)>", "<NSLayoutConstraint:0x6000022e14f0 'UIView-Encapsulated-Layout-Width' UIPrintPreviewPageCell:0x7fa0e58902c0.width == 125 (active)>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000022e0690 UIView:0x7fa0e5895a60.trailing == UIPrintPreviewPageCell:0x7fa0e58902c0.trailing (active)> Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
5
1
2.7k
Oct ’23
SwiftUI, List items reordering issue (iOS 16)
Hello, On iOS 15, I had a feature who allow the user to reorder some items inside of a list. Some view was not allowed to move (I use the modifier .moveDisabled for this behavior). In iOS 15, everything was working fine : I'm able to reorder items inside of the list (only for those who was allowed to be moved). But in iOS 16, I have a strange behavior : I still can reorder items, but if two items are not allowed to be reordered, I can't move any items between them. Here is the example : iOS 15 : iOS 16 : For this feature, I only use: standard SwiftUI List. .environment(\.editMode, .constant(.active)) (the view should always be editable). .moveDisabled() to allow items to be moved. No custom element here, everything is SwiftUI framework. What am I doing wrong? Thanks, Alexandre
5
5
2.4k
Sep ’23
Error throws while using the speech recognition service in my app
Recently I updated to Xcode 14.0. I am building an iOS app to convert recorded audio into text. I got an exception while testing the application from the simulator(iOS 16.0). [SpeechFramework] -[SFSpeechRecognitionTask handleSpeechRecognitionDidFailWithError:]_block_invoke Ignoring subsequent recongition error: Error Domain=kAFAssistantErrorDomain Code=1101 "(null)" Error Domain=kAFAssistantErrorDomain Code=1107 "(null)" I have to know what does the error code means and why this error occurred.
19
3
8k
Feb ’24
Live Activity Not Working on Physical Device
I am playing around with Live Activities and got everything working on the iOS 16.1 beta 2 simulator using Xcode 14.1 beta 2 (14B5024i). However, running the same code on a real physical device (iPhone X) running iOS 16.1 beta 2 does not show the Live Activity on the lock screen at all. 😵 Did anyone get their Live Activity working on a real device yet, or is this an issue with the current beta? Things I have already checked: ActivityAuthorizationInfo().areActivitiesEnabled returns true on my physical device let activity = try Activity.request(...) successfully completes without throwing and I can see the activity.id printed to the console Other live activities - such as the iOS system timer activity - do show up on my physical device just fine
15
0
7k
Mar ’24
Safari returns 0 for --safe-area-inset-bottom when the toolbar is hidden
Safari is returning 0 for --safe-area-inset-bottom when I use getComptutedStyle method on Iphones running on ios +15 both on portrait and landscape mode when the toolbar is hidden. I can guess that it's desired when the address bar is on the bottom and is hidden, however, is it supposed to return 0 when the address bar is set to be on the top (like on the ios versions -15) and the toolbar is hidden? Is it intended or an overlook from Safari? Comparison between versions: Safari ios14 hidden top toolbar portrait --safe-area-inset-bottom : 34, Safari ios14 hidden top toolbar landscape --safe-area-inset-bottom: 21 Safari ios 15+ hidden top toolbar portrait --safe-area-inset-bottom : 0, Safari ios 15+ hidden top toolbar landscape --safe-area-inset-bottom: 0
2
2
2.7k
Aug ’23
I am getting this error every time when I run my app in simulator
objc[1179]: Class SBFCARendererImageRepresentation is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SpringBoardFoundation (0x1472855a0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/PaperBoardUI.framework/PaperBoardUI (0x146af9930). One of the two will be used. Which one is undefined.
12
6
5.3k
Nov ’23
iOS 16 Ruins HDMI functionality
If you use your iPhone to stream to your tv through a lightning adapter Do NOT upgrade to iOS 16. I live in a rural area and don’t have Wi-Fi so we stream tv on my iPhone with a lightning adapter. This has worked great for many years and many iPhones. Ever since I updated to iOS 16 there is not one streaming app that will work through the adapter. I have tried multiple hdmi cords, lightning adapters and tvs and the result is the same. No audio at all and either no video or a video that lags every few seconds. Apple needs to fix their mistake or resign an old iOS so we can revert back.
5
2
4.1k
Aug ’23
Error 1110 - Report & Solution (Data Recovery)
Hello everyone, I'd like to post this so the issue becomes known to the Apple team and developers. I believe this information is very valuable for the company and would improve the lives of multiple customers around the globe and people wouldn't have to experiment with unknown 3rd party tools and possibly compromise their data. I've talked about this to a Senior Advisor and I was recommended to leave a post and feedback about this issue. In this post I'll be talking about Data Recovery possibility for a lot of people who encounter "Error 1110" in iTunes. What causes Error 1110 (common)? User takes up all of the storage space available on the iOS device. Software begins to malfunction or in my case begins to update overnight leading to a catastrophic failure. Device not booting. What is Error 1110? Device doesn't have enough storage space to boot or update. Only option available is "Restore" via iTunes. Device is stuck in a bootloop or constantly boots into Recovery Mode. iTunes isn't able to "Update" the device due to the following sample error: <key>AMRError</key> <integer>1110</integer> <string>Upgrade Install failed(ENOSPC) TotalSpace: 122070 MB InitialFreeSpace: 1675 MB FreeSpaceAfterCleanup: 1675 InitialDataVolumeUsage: 113289 MB DataVolumeUsageAfterCleanup: 113289 MB RequiredAdditionalSpace: 5956 MB </string> Consequences of this issue are as follows: Unable to boot device to retrieve data such as: Photos, Videos, etc... Forces customer or user to perform a software reset via iTunes. I'd like to point out that I've ran into loads of devices with Error 1110 including my own. This has been happening way more ever since iOS 10 release. In the last 4 years I've tried many repair shops and asked around for solutions to no avail. So I ended up digging deeper into this and found hundreds of posts around the web with people running into this issue. Reached out to numerous repair shops to see how often this occurs and it looks like it's a constant issue. So I took the time to investigate and come up with some solutions. Solutions that would help: Create a signed iOS copy every single time a new iOS releases. The copy would be a iOS (Light) version with all of the current security features but without system apps such as: Camera, Safari, Calendar, etc... However, it would be important that we do not allow downgrading these versions publicly either due to security reasons. So each release there would be 2 iOS versions. For example, we could implement the following: iOS 16.0.2 & iOS 16.0.2 (Light). This would definitely guarantee a fix for majority of people. In addition, this light iOS version could perform slight repairs to the current OS. The idea behind it is similar to a safe boot. Allow customers to send out their devices to Apple repair for a fee in order to downgrade iOS version that isn't being signed in order to successfully update device and repair the firmware. Afterwards, upload customers data to iCloud and reset the device. Why would this solution work? because lower iOS versions require less storage space and the chances of data retrieval increase. I personally like the first option as it would allow users to repair their devices from home. The second solution could be a temporary fix. However, second option doesn't necessarily guarantee data retrieval or a fix to the problem. Please let me know of what you guys think and if you have any suggestions. Feel free to reach out to me with questions as I've experimented with a load of such devices. Couple devices I've managed to fix for others but sadly haven't been able to fix mine as the storage situation is more severe on mine. There are people who lost years worth of information and so did I.
22
2
9.8k
Oct ’23
Crash on [AVPlayer _addLayer] in iOS 16 caused by Pegasus
Hi, Our apps currently facing a crash that only happens in iPhone with iOS 16. Unfortunately, we could not reproduce this issue, neither from XCode build or App store build. From third party crash analytics, it happens mostly of background and they highlighted this as the issue. Fatal Exception: NSInvalidArgumentException *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil And the stack trace, it shows: AVFCore __22-[AVPlayer _addLayer:]_block_invoke Pegasus __116-[PGPictureInPictureProxy _endDeactivatingPictureInPictureIfNeededWithAnimationType:stopReason:cleanupHandlerOrNil:]_block_invoke We also attach the full crash log to give full context of the crash. Any idea why this crash happens and is there anything i can do to prevent the crashes from happening again? pegasus.crash
14
6
4k
Dec ’23
why videotoolbox on ios 15.0 cannot support kVTEncodeFrameOptionKey_BaseFrameQP ?
hi apple expert: releated information: iphone : iphone 13 ios : ios 15.5 xcode : 13.4.1 in VTCompressionProperties.h I can see : VT_EXPORT const CFStringRef kVTEncodeFrameOptionKey_BaseFrameQP API_AVAILABLE(macosx(12.0), ios(15.0), tvos(15.0)); // CFNumberRef, Optional I want to use videotoolbox new api kVTEncodeFrameOptionKey_BaseFrameQP with ios 15.5 on iphone 13 xcode 13.4.1 , but when I call supportedPropertyDictionary,it returns 105 key/value pairs as below : but it doesn't include BaseFrameQP .why ? VTCompressionProperties.h document say that it support on ios 15+ ????? supportedPropertyDictionary CFDictionaryRef 105 key/value pairs 0x000000015d8a5400 [0] (null) "iChatUsageString" : 3 key/value pairs [1] (null) "DataRateLimits" : 3 key/value pairs [2] (null) "AverageBitRate" : 3 key/value pairs [3] (null) "TransferFunction" : 4 key/value pairs [4] (null) "FrameRateTargetForAverageBitrate" : 3 key/value pairs [5] (null) "PoolPixelBufferAttributesSeed" : (no summary) [6] (null) "EnableVUI" : 3 key/value pairs [7] (null) "FigThreadPriority" : (no summary) [8] (null) "MaxKeyFrameIntervalDuration" : 3 key/value pairs [9] (null) "AllowCompressedPixelFormats" : (no summary) [10] (null) "UserRPSForFaceTime" : 3 key/value pairs [11] (null) "ChromaLocationTopField" : (no summary) [12] (null) "RequireDeterministicDependencyAndReordering" : 3 key/value pairs [13] (null) "ForceSliceRPS" : 3 key/value pairs [14] (null) "MinimizeMemoryUsage" : 3 key/value pairs [15] (null) "FieldDetail" : (no summary) [16] (null) "EnableMBInputCtrl" : 3 key/value pairs [17] (null) "ProfileLevel" : 4 key/value pairs [18] (null) "EnableContentColourVolumeSEI" : 3 key/value pairs [19] (null) "UsingHardwareAcceleratedVideoEncoder" : 3 key/value pairs [20] (null) "PixelBufferPoolIsShared" : (no summary) [21] (null) "EnableWeightedPrediction" : 3 key/value pairs [22] (null) "InputPixelFormat" : 3 key/value pairs [23] (null) "YCbCrMatrix" : 4 key/value pairs [24] (null) "InputQueueMaxCount" : 3 key/value pairs [25] (null) "SoftMinQuantizationParameter" : 3 key/value pairs [26] (null) "ComponentRange" : (no summary) [27] (null) "lrmeRCPassNum" : 3 key/value pairs [28] (null) "ColorPrimaries" : 4 key/value pairs [29] (null) "AllowOpenGOP" : 3 key/value pairs [30] (null) "HEVCTemporalLevelInfoCombinations" : 3 key/value pairs [31] (null) "AllowTemporalCompression" : 3 key/value pairs [32] (null) "AllocCodedBufferHalfSize" : 3 key/value pairs [33] (null) "GammaLevel" : (no summary) [34] (null) "ICCProfile" : (no summary) [35] (null) "SoftMaxQuantizationParameter" : 3 key/value pairs [36] (null) "ForceRefUncompressed" : 3 key/value pairs [37] (null) "EnableUserRefForFacetime" : 3 key/value pairs [38] (null) "InsertTrailingBytes" : 3 key/value pairs [39] (null) "PoolPixelBufferAttributes" : (no summary) [40] (null) "HDRMetadataInsertionMode" : (no summary) [41] (null) "RealTime" : 3 key/value pairs [42] (null) "UserParameterSetsIds" : 3 key/value pairs [43] (null) "RequiredHEVCPictureParameterSetID" : 3 key/value pairs [44] (null) "RequiredHEVCSequenceParameterSetID" : 3 key/value pairs [45] (null) "DebugMetadataSEI" : 3 key/value pairs [46] (null) "MaxQuantizationParameter" : 3 key/value pairs [47] (null) "LossLess" : 3 key/value pairs [48] (null) "CleanAperture" : (no summary) [49] (null) "DroppablePFramesOnly" : 3 key/value pairs [50] (null) "UseVideoResolutionAdaptation" : 3 key/value pairs [51] (null) "PrepareEncodedSampleBuffersForPaddedWrites" : (no summary) [52] (null) "EnableParallelStitching" : 3 key/value pairs [53] (null) "EnableStatsCollect" : 3 key/value pairs [54] (null) "ExpectedFrameRate" : 3 key/value pairs [55] (null) "PerceptualQualityOptimization" : 3 key/value pairs [56] (null) "NumberOfPendingFrames" : (no summary) [57] (null) "OutputBitDepth" : 3 key/value pairs [58] (null) "DebugMetadataSEIuseEPB" : 3 key/value pairs [59] (null) "log2_max_minus4" : 3 key/value pairs [60] (null) "PixelAspectRatio" : (no summary) [61] (null) "AmbientViewingEnvironment" : 3 key/value pairs [62] (null) "ThrottleForBackground" : 3 key/value pairs [63] (null) "Priority" : 3 key/value pairs [64] (null) "ConvergenceDurationForAverageDataRate" : 3 key/value pairs [65] (null) "PreserveDynamicHDRMetadata" : (no summary) [66] (null) "AuxiliaryTypeInfo" : (no summary) [67] (null) "EncodesAlpha" : 3 key/value pairs [68] (null) "ExpectedDuration" : 3 key/value pairs [69] (null) "MultiReferencePSpacing" : 3 key/value pairs [70] (null) "UserDPBFramesForFaceTime" : 3 key/value pairs [71] (null) "HEVCSyncSampleNALUnitTypes" : 3 key/value pairs [72] (null) "Quality" : 3 key/value pairs [73] (null) "MultiPassStorage" : 2 key/value pairs [74] (null) "EnableTimingInfoMetadata" : 3 key/value pairs [75] (null) "EncoderUsage" : 3 key/value pairs [76] (null) "PixelTransferProperties" : (no summary) [77] (null) "ChromaLocationBottomField" : (no summary) [78] (null) "FieldCount" : (no summary) [79] (null) "AllowFrameReordering" : 3 key/value pairs [80] (null) "RequiredHEVCVideoParameterSetAlphaLayerID" : 3 key/value pairs [81] (null) "EnableVUIBitstreamRestriction" : 3 key/value pairs [82] (null) "EncoderID" : (no summary) [83] (null) "AllowPixelTransfer" : (no summary) [84] (null) "EncodesDisparity" : 3 key/value pairs [85] (null) "VideoEncoderPixelBufferAttributes" : (no summary) [86] (null) "DeblockingFiltering" : 3 key/value pairs [87] (null) "EncodesDepth" : 3 key/value pairs [88] (null) "ChromaQPIndexOffsetMultiPPS" : 3 key/value pairs [89] (null) "EnableMultiReferenceP" : 3 key/value pairs [90] (null) "ContentLightLevelInfo" : (no summary) [91] (null) "MaxKeyFrameInterval" : 3 key/value pairs [92] (null) "BaseLayerFrameRate" : 3 key/value pairs [93] (null) "EnableUserQPForFacetime" : 3 key/value pairs [94] (null) "MaximizePowerEfficiency" : 3 key/value pairs [95] (null) "PrioritizeEncodingSpeedOverQuality" : 3 key/value pairs [96] (null) "IntraRefreshFrames" : 3 key/value pairs [97] (null) "MasteringDisplayColorVolume" : (no summary) [98] (null) "QuantizationScalingMatrixPreset" : 3 key/value pairs [99] (null) "ClientPID" : (no summary) [100] (null) "SAOMode" : 3 key/value pairs [101] (null) "SourceFrameCount" : 3 key/value pairs [102] (null) "CodedBuffersOverride" : 3 key/value pairs [103] (null) "RelaxAverageBitRateTarget" : 3 key/value pairs [104] (null) "NumberOfSlices" : 3 key/value pairs
2
0
576
Aug ’23
Encountering Error Domain=NSCocoaErrorDomain Code=513 while creating hard link between files on MacOS(Mac Catalyst App)
Hi, I am trying to create a hard link on MacOS(Mac Catalyst App) between files using [self linkItemAtURL:fromURL toURL:toURL error:&error]; Source Path for MacOS - /var/folders/lf/dt_4nxd945jdry2241phx0_40000gn/T/net.appname.AppName/documents/... Destination Path for MacOS - /Users/username/Library/Group Containers/group.net.appname.AppName.shared/Message/Media/... Although the same code works fine on iOS, but getting following error on MacOS Error Domain=NSCocoaErrorDomain Code=513 couldn’t be linked because you don’t have permission to access, Operation not permitted Source Path for iOS - /Users/user/Library/Developer/CoreSimulator/Devices/B4054540-345F-4D90-A3C5-DA6E6469A3FC/data/Containers/Data/Application/B4AB7D70-491C-49E5-9A3F-27E66EC3423D/tmp/documents/... Destination Path for iOS - /Users/user/Library/Developer/CoreSimulator/Devices/B4054540-345F-4D90-A3C5-DA6E6469A3FC/data/Containers/Shared/AppGroup/842B248E-CCA6-4B5C-82BD-2858EADD3A90/Message/Media/... However, interestingly if I try to copy the file, it works perfectly fine on MacOS as well. I am unable to understand if it is the permission issue, it should not work with copy as well. Does anyone have any reason/solution to this behaviour?
5
0
1.1k
Feb ’24