Frameworks

RSS for tag

Ask questions about APIs that can drive features in your apps.

Frameworks Documentation

Posts under Frameworks tag

197 Posts
Sort by:
Post not yet marked as solved
5 Replies
550 Views
this post is related to the https://developer.apple.com/videos/play/wwdc2023/10061/ Hi, we are wondering if the framework should be signed. the video indicates that all xcframework must be signed, on the other hand framework is not mentioned even website. does anyone have ideas?
Posted
by Gazzy.
Last updated
.
Post not yet marked as solved
1 Replies
440 Views
The current structure of my SDK xcframework is XXXX-Release.xcframework. Inside that, I have an XXXX.xcframework and a LICENSE.md file. Currently, this structure works fine in Swift Package Manager, dropping the XXXX-Release.xcframework file into Xcode and CocoaPods. When I sign my xcframework as per Apple's requirements, I need to sign XXXX.xcframework, which is on the second level. Signing this works fine. Will this meet Apple's requirements for signing an xcframework? I just want to make sure the current structure of my SDK does not need to change. Thanks
Posted
by ajeisses.
Last updated
.
Post not yet marked as solved
4 Replies
1.8k Views
Hello. We provide our software in the form of static libraries (.a) wrapped in xcframework. Therefore, the final app will not include the embed framework. In such a case, should the manifest content required for the library be written as part of the application's xcprivacy file? Or can I provide xcprivacy as part of the xcframework?
Posted Last updated
.
Post not yet marked as solved
6 Replies
911 Views
To download files, we have two NSURLSession objects. One configured for foreground downloads and one for background downloads. Initially, we download user-requested files in the foreground using downloadTaskWithRequest, because foreground downloads are faster than background downloads. We then also start a background task for each download using beginBackgroundTaskWithName:expirationHandler:. This background task's expiration handler starts a background download if the download didn't complete in the foreground. It cancels the foreground download with resume data using cancelByProducingResumeData. A background download task is then started using downloadTaskWithResumeData. Now, testing has shown that background download tasks resume correctly (the urlSession(_:downloadTask:didResumeAtOffset:expectedTotalBytes:) callback is called by iOS) if the background task is started immediately. However, iOS can decide to start these background download tasks later. As a sidenote, the isDiscretionary property of our background download session is set to the default, which should be false. The issue we have is that background downloads that are resumed several minutes (6,5 minutes in the session I'm currently looking at) after their original foreground download was cancelled, are not resumed properly. They download the remaining part of the file, but the first part that was downloaded in the foreground is lost. What could have happened? Perhaps the temporary file has been deleted in the meantime? Is there some way to maintain this file or detect this case?
Posted
by p_b_omta.
Last updated
.
Post not yet marked as solved
1 Replies
264 Views
Hi! I'm moving my UINavigationBar and UINavigationItem to the iOS 16 style and having trouble with disabling buttons. Before: I'm defining rightBarButtonItems with a few barButtonItems plus a (custom) menuButtonItem (which has a menu with some more actions). After: I'm defining trailingItemGroups and let the system create an overflow menu dynamically, depending on space. I'm also defining some additionalOverflowItems. Here's the problem: How can I access the button/barButtonItem that is showing the overflow menu and call isEnabled = false? My UI, so far, has disabled all buttons during edit mode. I don't want to hide them, but have them grayed out, including the overflow menu button. class MyVC : UIViewController { // ... override func setEditing(_ editing: Bool, animated: Bool) {         super.setEditing(editing, animated: animated) // ... // This doesn't disable the overflow menu button         navigationItem .trailingItemGroups .forEach { $0.barButtonItems .forEach { $0.isEnabled = !isEditing } }     } }
Posted Last updated
.
Post not yet marked as solved
1 Replies
334 Views
Hi Team, We have a static framework and we have included the PrivacyInfo.xcprivacy for each architecture inside the xcframework and when we try to generate the privacy report it throws error like xcprivacy not found. Can you please tell us how to include the PrivacyInfo.xcprivacy file for static frameworks.
Posted Last updated
.
Post not yet marked as solved
0 Replies
288 Views
I have a project generated by Tuist and recently started to migrate to XCode 15. I keep getting too many errors related to swiftmodule, swiftdoc, abi.json, swiftsourceinfo that, apparently, XCode is looking for in the DerivedData folder deep inside Objects-normal subdirectory but gets an error: No such file or directory I also got a No type or protocol named 'nw_proxy_config_t' error too, related to Webkit that isn't even a dependency in that module. I've tried to update cocoapods, tuist, ruby, add postInstall configs I found at StackOverflow, but nothing worked. Could a gentle soul point me to the right direction here ?
Posted
by SylviaR.
Last updated
.
Post not yet marked as solved
0 Replies
193 Views
Hello, We noticed one or more issues with a recent delivery for the following app: xyz Version 3.0.0 Build 18396 Please correct the following issues and upload a new binary to App Store Connect. ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/xyz.framework/xyz: _dyld_shared_cache_file_path. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/
Posted Last updated
.
Post not yet marked as solved
0 Replies
215 Views
I have created a visionOS framework from Xcode to bridge between Unity and visionOS which is used to call APIs from Unity to VisionOS. visionOS framework we attached in Unity assets is not getting builded along with Unity visionOS build. This method is working fine for iOS build.  i.e, created a iOS framework from Xcode to bridge between Unity and iOS which is used to call APIs from Unity to iOS. iOS framework we attached in Unity assets is getting builded along with Unity iOS build. Whether the VisionOS framework will work in Unity same as that of iOS? Is there any additional settings to setup framework for visionOS? Reference link for the setup method used: https://betterprogramming.pub/setting-up-ios-framework-for-unity-9ef4e577db89
Posted Last updated
.
Post not yet marked as solved
0 Replies
348 Views
We're bringing in an updated framework in our app, and the update requires ticking "Copy only when installing" in the Embed Frameworks build phase. When ticking that box, we get numerous other errors, suggesting frameworks xyz cannot be found. I've tried to find some documentation on this checkbox but there doesn't appear to be much on it, other then builds magically failing/suceeding when its toggled on/off. Is anyone able to shed some light on what is happening under the hood when that checkbox is ticked?
Posted Last updated
.
Post not yet marked as solved
4 Replies
606 Views
I am perplexed as to how to use async await. In the following example, I don't use GCD or performSelector(inBackground:with:). The view controller is NSViewController, but it doesn't make any difference if it's NSViewController or UIViewController. import Cocoa class ViewController: NSViewController { func startWriteImages() { Task{ let bool = await startWriteImagesNext() if bool { print("I'm done!") } } } func startWriteImagesNext() async -> Bool { // pictures is a path to a folder in the sandbox folder // appDelegate.defaultFileManager is a variable pointing to FileManager.default in AppDelegate let pictURL = URL(fileURLWithPath: pictures) if let filePaths = try? self.appDelegate.defaultFileManager.contentsOfDirectory(atPath: pictURL.path) { for file in filePaths { let fileURL = pictURL.appending(component: file) if self.appDelegate.defaultFileManager.fileExists(atPath: fileURL.path) { let newURL = self.folderURL.appending(component: file) do { try self.appDelegate.defaultFileManager.copyItem(at: fileURL, to: newURL) } catch { print("Ugghhh...") } } } return true } return false } func startWriteImagesNext2() async -> Bool { let pictURL = URL(fileURLWithPath: pictures) if let filePaths = try? self.appDelegate.defaultFileManager.contentsOfDirectory(atPath: pictURL.path) { DispatchQueue.global().async() { for file in filePaths { let fileURL = pictURL.appending(component: file) if self.appDelegate.defaultFileManager.fileExists(atPath: fileURL.path) { let newURL = self.folderURL.appending(component: file) do { try self.appDelegate.defaultFileManager.copyItem(at: fileURL, to: newURL) } catch { print("Ugghhh...") } } } } return true } return false } } In the code above, I'm saving each file in the folder to user-selected folder (self.folderURL). And the application will execute the print guy only when work is done. Since it's heavy-duty work, I want to use CCD or performSelector(inBackground:with:). If I use the former (startWriteImagesNext2), the application will execute the print guy right at the beginning. I suppose I cannot use GCD with async. So how can I perform heavy-duty work? Muchos thankos.
Posted
by Tomato.
Last updated
.
Post marked as Apple Recommended
1k Views
I'm currently experimenting with the latest Xcode beta 15.3 (15E5194e) and attempting to integrate FinanceKit](https://developer.apple.com/documentation/financekit) into my project. However, I've encountered a persistent issue where the app crashes upon attempting to read or request authorization, accompanied by the following error message: FinanceKit/FinanceStore+FinancialDataAuthorization.swift:52: Fatal error: Process is not entitled Upon investigation, I've found no evident entitlements for FinanceKit, despite exploring options like Apple Wallet. Furthermore, I thoroughly examined the info.plist for relevant privacy values but found nothing pertinent. Here's the code snippet that triggers the fatal error, whether it's the request or read function: I don't see anything in entitlements for FinanceKit (I tried Apple Wallet and that didn't make a difference). Additionally, I checked for relevant privacy values for the info.plist but again didn't see anything relevant. Here is the code to reproduce the error (note calling either function will result in the same fatal error): import FinanceKit import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() requestFinancePermission() // readFinancePermission() } private func requestFinancePermission() { Task { do { let status = try await FinanceStore.shared.requestAuthorization() } catch { print("Error: \(error)") } } } private func readFinancePermission() { Task { do { let status = try await FinanceStore.shared.authorizationStatus() } catch { print("Error: \(error)") } } } } I'm seeking clarification on whether FinanceKit is currently usable or if there are additional steps needed for proper integration. Any insights or suggestions would be greatly appreciated. Thank you!
Posted
by dtroupe.
Last updated
.
Post not yet marked as solved
0 Replies
296 Views
Hi there, I'm setting up a new "framework target" in my project (xcode 15.2). I dragged and drop another framework to reused (called: SDImage). But at the step of importing SDImage to my framework, my xcode 15.2 always show that "SDImage/SDImage.h" file not found I was trying to set target membership of SDImage, config header/framework search path already but nothing gonna help. Please give me a solution. Thank you and have a nice day
Posted Last updated
.
Post not yet marked as solved
0 Replies
269 Views
In other frameworks, I've seen codeSignature included in dynamic cases, but this time Apple said, "Signatures are so required in these cases where the listed SDKs are used as binary dependencies." Does that mean that even if the .framework file of the SDK you are deploying is static, you have to include codeSignature?
Posted
by asdfffaaa.
Last updated
.
Post not yet marked as solved
0 Replies
490 Views
I'm creating an SDK, the static library doesn't have a target membership check, how do I add it? I'm wondering what should I write in the associated static library(.a) if the user adds occupation privacyinfo. I can't find any examples, so if anyone has solved this, I'd appreciate an example :)
Posted
by 2ls2_891.
Last updated
.
Post not yet marked as solved
2 Replies
399 Views
Hello, we have a universal app that runs on iOS and iPadOS today but we're having an issue where it crashes on launch on visionOS. When I try to run our app, I see messages like these in the console logs: AMFI: constraint violation /private/var/containers/Bundle/Application/***/***.app/Frameworks/***.framework/*** has entitlements but is not a main binary I see these for what seems to be all of our internal frameworks, we use cocoapods for all of these. The following output is from running: codesign -d --entitlements :- ***.framework <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict></dict></plist> Why would this cause a crash on launch for visionOS, but not iOS or iPadOS? Why does AMFI think there are entitlements for the framework when they are empty?
Posted
by RigasSF.
Last updated
.
Post not yet marked as solved
0 Replies
345 Views
https://developer.apple.com/documentation/managedappdistribution https://developer.apple.com/documentation/appdistribution/fetching-and-displaying-managed-apps We have tested the above apple documentation regarding Managed Application Distribution . To Note : We are trying to provide a custom AppStore in our MDM App for Managed Apps. We have done all the steps mentioned in the documentation Got Entitlement and enabled for the app. Used the Exact code in a new swift UI Project Attaching Screenshots for the compile time error , i get First Screenshot , shows an error when building the project with a physical device(iOS 17.4). Seconds one , shows different error when building with a simulator. I have checked all the apple documentations and wwdc videos for further clue on this. But no help ! It will be helpful, if anyone help me with exact working model for this framework.
Posted Last updated
.
Post not yet marked as solved
0 Replies
274 Views
Feature-rich products like Firebase offer a lot of features, but don't use all of them. For example, Firebase Analytics may or may not use a user id. Do I need to include all the features of firebase analytics in my privacy manifest just because I've included firebase analytics in my app, even if I don't use it?
Posted
by thkim2.
Last updated
.
Post not yet marked as solved
0 Replies
389 Views
I have the following problem: In the Moodle application there is a personalized screen to access some courses, for this a "mustache" file was added to the Moodle code with the following code: &lt;ion-list &gt; &lt;%#Cursos%&gt; &lt;%#.%&gt; &lt;ion-card style="height: 50%;"&gt; &lt;img alt="Silhouette of mountains" src="&lt;%wwwroot%&gt;/theme/almondb/pix/portada.jpg" /&gt; &lt;ion-card-header&gt; &lt;ion-card-title&gt;&lt;%fullname%&gt;&lt;/ion-card-title&gt; &lt;ion-card-subtitle&gt;&lt;%shortname%&gt;&lt;/ion-card-subtitle&gt; &lt;/ion-card-header&gt; &lt;ion-card-content&gt; &lt;ion-list&gt; &lt;a href="moodlemobile://&lt;%wwwroot%&gt;?redirect=/course/view.php?id=&lt;%id%&gt;" data-open-in="app" style="text-decoration: none;"&gt; &lt;ion-item lines="inset" detail="true"&gt; &lt;ion-label&gt; &lt;%fullname%&gt; &lt;/ion-label&gt; &lt;/ion-item&gt; &lt;/a&gt; &lt;/ion-list&gt; &lt;/ion-card-content&gt; &lt;/ion-card&gt; &lt;%/.%&gt; &lt;%/Cursos%&gt; &lt;/ion-list&gt; Custom URLs were used to achieve this. On Android the application works correctly, when you click it takes you to the course screen, however, on IOS it gives an error: "failed to load webpage with error unsupported url" I have tried the following solutions that I found in other forums &lt;meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' 'unsafe-eval' *; media-src 'self' 'unsafe-inline' 'unsafe-eval' *; img-src 'self' 'unsafe-inline' 'unsafe-eval' * data:;"&gt; preference name="WKPort" value="8080" preference name="UseScheme" value="false" &lt;allow-navigation href="moodlemobile:*" /&gt; [Image Edited by Moderator to Remove Personal Information]
Posted Last updated
.