Explanation:
I am working on an application and had trouble diagnosing the warnings below. I pulled the search bar code out into a separate project, and the warnings still show up. The entire code for the sample project is shown below. The "AddInstanceForFactory", "LoudnessManager", and "NSBundle" warning all show up immediately after tapping the search bar. The "RTIInputSystemClient" warning arises after tapping, dismissing, and re-tapping the search bar.
Any help with resolving these warnings is appreciated!
Warnings:
"-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = , customInfoType = UIEmojiSearchOperations"
"NSBundle file:///Library/Developer/CoreSimulator/Volumes/iOS_22A3351/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%2018.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MetalTools.framework/ principal class is nil because all fallbacks have failed"
"AddInstanceForFactory: No factory registered for id <CFUUID --------------> -----------------"
"LoudnessManager.mm:709 unable to open stream for LoudnessManager plist"
Code:
import UIKit
class SearchView: UIView {
private lazy var searchBar: UISearchBar = {
let searchBar = UISearchBar()
searchBar.delegate = self
searchBar.translatesAutoresizingMaskIntoConstraints = false
searchBar.placeholder = "Search"
return searchBar
}()
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
init() {
super.init(frame: .zero)
translatesAutoresizingMaskIntoConstraints = false
backgroundColor = .yellow
addSubview(searchBar)
NSLayoutConstraint.activate([
searchBar.topAnchor.constraint(equalTo: topAnchor, constant: 12),
searchBar.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 12),
searchBar.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -12),
searchBar.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -12),
])
}
}
extension SearchView: UISearchBarDelegate {
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
print(searchText)
}
}
class ViewController: UIViewController {
private lazy var searchView = SearchView()
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .red
let tap = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard))
view.addGestureRecognizer(tap)
view.addSubview(searchView)
NSLayoutConstraint.activate([
searchView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
searchView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 24),
searchView.centerXAnchor.constraint(equalTo: view.centerXAnchor),
])
}
@objc func dismissKeyboard() {
view.endEditing(true)
}
}
Dive into the vast array of tools, services, and support available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi there,
We are seeing weird issue, Testflight invites sent to users go without "View in Testflight" link despite the build is available for testing, user has no way to install App through TestFlight.
NOTE: Our other Apps on the same developer account are sending proper TestFlight invite with the link to View redeem code / "View in TestFlight".
At present we are stuck inviting users, asked developers to upload new build but without any success.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hi,
I have a problem with making a swift playgrounds app walkthrough. I followed the steps exactly and modified my Package.swift a bit (in the targets section):
.executableTarget(name: "App", dependencies: ["Guide"], path: "App"),
.target(
name: "Guide",
path: "Guide",
resources: [
.process("Guide.tutorial"),
])
Now when I open the project in Playgrounds I get this error:
public headers ("include") directory path for 'Guide' is invalid or not contained in the target
Any help would be appreciated.
Thanks
Hi,
I have configured my ios app with iCloud Coredata sync.
I have already checked bundleId, containerId, and cloud login on the device.
I am getting the following error.
error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1242): <NSCloudKitMirroringDelegate: 0x600003d085a0>: Failed to set up CloudKit integration for store: <NSSQLCore: 0x105814630> (URL: file:///Users/santoshsingh/Library/Developer/CoreSimulator/Devices/B49DDBBB-6111-4664-897C-08976854137E/data/Containers/Data/Application/55E67DB0-8CAE-416D-A873-161443FA690F/Library/Application%20Support/default.store)
<CKError 0x600000c786f0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55; container ID = "iCloud.com.AmeristarFence.PerimeterInSite"; partial errors: {
com.apple.coredata.cloudkit.zone:defaultOwner = <CKError 0x600000c71ec0: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = FED32AB88A4F36CC; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55>
}>
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _finishedRequest:withResult:]: Finished request: <NSCloudKitMirroringDelegateSetupRequest: 0x600002161c70> 26F773DB-4986-430A-A3FF-AC39B9390223 with result: <NSCloudKitMirroringResult: 0x600000c72130> storeIdentifier: CAC05ADB-DC9A-4CC5-9530-91FDDEEC7DD2 success: 0 madeChanges: 0 error: <CKError 0x600000c786f0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55; container ID = "iCloud.com.AmeristarFence.PerimeterInSite"; partial errors: {
com.apple.coredata.cloudkit.zone:defaultOwner = <CKError 0x600000c71ec0: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = FED32AB88A4F36CC; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55>
}>
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]: <NSCloudKitMirroringDelegate: 0x600003d085a0>: Checking for pending requests.
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]_block_invoke(3569): <NSCloudKitMirroringDelegate: 0x600003d085a0>: No more requests to execute.
error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:]: <NSCloudKitMirroringDelegate: 0x600003d085a0> - Attempting recovery from error: <CKError 0x600000c786f0: "Partial Failure" (2/1011); "Failed to modify some record zones"; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55; container ID = "iCloud.com.AmeristarFence.PerimeterInSite"; partial errors: {
com.apple.coredata.cloudkit.zone:defaultOwner = <CKError 0x600000c71ec0: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = FED32AB88A4F36CC; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55>
}>
error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _recoverFromPartialError:forStore:inMonitor:]_block_invoke(2775): <NSCloudKitMirroringDelegate: 0x600003d085a0>: Found unknown error as part of a partial failure: <CKError 0x600000c71ec0: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = FED32AB88A4F36CC; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55; container ID = "iCloud.com.AmeristarFence.PerimeterInSite">
error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _recoverFromPartialError:forStore:inMonitor:]: <NSCloudKitMirroringDelegate: 0x600003d085a0>: Error recovery failed because the following fatal errors were found: {
"<CKRecordZoneID: 0x600000c720a0; zoneName=com.apple.coredata.cloudkit.zone, ownerName=defaultOwner>" = "<CKError 0x600000c71ec0: "Permission Failure" (10/2007); server message = "Invalid bundle ID for container"; op = FED32AB88A4F36CC; uuid = EC168AB2-FDDD-47C6-B6E1-8C6A52C11F55; container ID = "iCloud.com.AmeristarFence.PerimeterInSite">";
}
A few days ago, I updated my phone to the latest beta version 18.1, and usually the hotspot of my phone is on to connect to other devices. Today, I encountered a problem with the internet. After realizing the problem with the internet speed, I reset the network and after Hotspot reset cannot be accessed anywhere
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hello, I wanna keep this simple and I just want a simple answer please because I cannot find one anywhere. I have the Ios 18.1 beta and have had it for a couple months. Obviously I did not receive the ios 18 update in september. When ios 18.1 drops in mid october will i receive it? I hope so because my phone has been nothing but buggy. Someone please just answer for me.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
So I'm working on a large client app with lots of frameworks and modules which is is a mix of Xcode frameworks with 3rd party dependencies in CocoaPods and newer/converted SPM modules. Essentially CocoaPods is used to set the 3rd party dependencies on various Xcode frameworks, which also depend on each other via manual set dependencies, plus a bunch of SPM modules which are also manually added. It's a bit of a mess.
The problem we encountered the other day started when I added a new protocol to one of the SPM modules. Nothing special about it, all types from Foundation and the app built and ran perfectly in simulator with a Debug build.
However when we switched to building a Release build, it failed to link, logging an error indicating it could not resolve the new protocol in a number of the Xcode framework projects.
The resolutions go like this:
The Xcode app project has some manually added Xcode frameworks.
Those frameworks have manually added dependencies on a second Xcode framework.
That second framework has an SPM dependency on the module where my protocol lives.
So Xcode App -> 1st Xcode framework -> 2nd Xcode framework -> SPM module.
Now the 2nd Xcode framework directly uses my protocol from the SPM module. But the 1st Xcode framework neither uses or imports the SPM module.
Yet the error we get when building for Release is that the 1st Framework is unable to resolve the protocol from the SPM module even though it's completely oblivious to it.
My working theory is that something in the way a Release build works is insisting that when linking the 1st Xcode framework, it has to resolve the 2nd Xcode framework, which then has to resolve types from the SPM modules, but for some reason and only in a Release build, it's unable to.
So our current workaround has been to add the SPM module as a dependency to all 1st level Xcode frameworks that have the 2nd Xcode framework as a dependency. That works because when linking the 1st Xcode framework, it has a direct reference to the module even though the code never imports anything from it.
Does this should correct?
We always receive six times about the same TransactionID.
You can see the image.
It's not five times.
We are under V2.
Any comments will be helpful.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
App Store Server Notifications
I have a small Swift command line tool for MacOS.
I have added a small demo CoreML model to the project and can correctly load the model in Swift like let model = try! Matcher_512x256().
However, once I add a single C++ or Objective C file to the Compile Sources of my build target, the compilation fails with an error stating that the model cannot be found: "...ModelAndCpp/ModelAndCpp/main.swift:11:18 Cannot find 'Matcher_512x256' in scope".
Please help me resolve this. Does XCode change into a different "compilation mode" once a C++ file is present which might cause this error? XCode version is 16A242d.
I can reproduce the issue with a tiny repository (5 small files) which I have uploaded here on GitHub.
To reproduce the issue, simply remove the .m and .cpp files from Compile Sources to compile correctly, or add one of them to get the error.
Thank you and best regards,
Manuel
Hi, I recently updated my Xcode, and I've been experiencing frequent crashes with the preview. Here’s a screenshot of the preview:
https://ibb.co/WnwWMjh
If I use the manual merge option with a mergeable library in debug mode, the app crashes on the device only.
Here's what I found when debugging this issue.
Problem situation 1
In the debug build, the linker does not find the type of the Meregeable Library.
Explain the debugged result of Problem Situation 1
We have a type called UserAdDTO, which belongs to the B Framework. - In our project, B Framework and C Framework are mergeable libraries, and they are merged into A Framework.
We are using Manual Merge in A Framework.
When we build with the simulator, we link the UserAdDTO from CFramework.framework/CFramework in the app target.
On the other hand, when I build with the device, I try to link it from AFramework.framework/AFramework, and I get the issue that UserAdDTO is not found.
So, even if you output DYLD_PRINT_BINDINGS, the simulator build links to the C Framework to find the UserAdDTO, but the app links to the B Framework, causing a runtime crash.
Problem situation 2
It is confirmed that only the device build does not copy the reexported binary.
Detailed description of problem situation 2
If you compare the build messages from the device build with the build messages from the release build, both generate the reexported binaries of B and C Frameworks, but do not copy them to BFramework.framework and CFramework.framework.
Instead, they copy the files in different paths.
This appears to be a bug, and I'd like to ask you to confirm.
Bonjour,
Depuis la lise à jours vers IOS 18, j'ai un problème de son sur les notes vocales : le début de l'enregistrement est sur un son très bas, puis augmente progressivement. Que se passe-t-il ? C'est très gênant car je m'en sers beaucoup pour diverses raisons.
Hello,
Since updating to IOS 18, I have a sound problem on the voice notes : the beginning of the recording is on a very low sound, then gradually increases. What's the problem?
It's very annoying because I use it a lot for various reasons.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I have a major problem with team membership and Xcode.
I work in a company, where my apple account was added to the development team with app manager role. I can see that on the apple portal, everything seems fine there. I have been also provided with the provisioning profile for the project and signing certificate of the company.
However, when I log into Xcode the team does not show up anywhere. I am able to build the app, but cannot distribute to TestFlight (or anywhere else). When I use manual signing to choose the signing certificate it shows the "unknown team" message next to it. When I check my account in xcode it also only shows my personal team and does not allow to pick any other one (doesn't show any other one).
When I click the "+" button on my xcode account to add a certificate an error pops up: "You already have active certificate or a pending request". I do have a pending request to enroll into apple developers program, but everyone says you don't need one if you are added to the team, you can just operate as a team member.
Finally, when trying to upload to TestFlight, the following error is displayed: "No team for account ***"
I have tried deleting and re-adding all the certificates. I have tried logging in and out of Xcode, I have tried deleting and re-adding my account in Xcode. I have tried reloading everything. My account was deleted and re-added to developers team.
Nothing worked. I don't know the source of the issue, nor does my employer. I am new to ios development and this is my first project.
Please help!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Xcode
Signing Certificates
Developer Program
Buenas a toda la comunidad, quería comentar mi caso para ver si me pueden ayudar.
Me registré y realicé lo requerido para dar de alta a la membresía en apple developer, hace mas de 96hs. todavía figura pendiente y nadie me responde.
Alguna sugerencia? ya he intentado realizarla con otro correo, etc.
Muchas gracias
Hello everyone, I am a solo developer and wanted to join the Apple Store Developers Club.
I registered an Apple account for myself.
After that, I tried to pay for membership in the club.
At first, my payment was declined, although there was enough money there.
Then I tried to do it again, but now I get the error "Your payment authorization failed on card ***. Please verify your information and try again, or try another payment method."
I contacted support, support advised me to make a payment through the application, but I do not use Apple devices.
Otherwise, through the web, the payment still does not happen.
I don’t know what to do with all this, I have been waiting for more than a month.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
Developer Tools
Developer Program
Sometimes when I am writing my code, previews blacks out and crashes and I get the warning PreviewShell crashed unexpectedly.
My Xcode has also been crashing a lot more after updating to Xcode 16. Does anyone have any idea why?
I have a xcworkspace with 2 targets: targetA and targetB.
TargetA is dependent of the library that requires xCode 15.3.
TargetB is a framework that I want to continue supporting on xCode 14.1 and is not dependent of any library at all.
The problem occurs when I archive my TargetB via xcodebuild archive command on xCode 14.1.
It doesn't build it due to Package.resolved error and requires me to use xCode 15.3 command line tools (for the dependency of TargetA).
Is there a way to explicitly tell to xcodebuild archive command to ignore SPM for my TargetB?
Topic:
Developer Tools & Services
SubTopic:
Xcode
During the testing of Apple subscription renewals, we've encountered a severe issue that prevents us from renewing our subscription. When attempting to renew, there's an unexpected redirect from the payment page back to the previous screen, making it impossible to complete the renewal process.
Key Points
Cross-Browser Issue: We've attempted to access the renewal page from multiple browsers, and the issue persists across all of them.
Unresolved Support Tickets: We've submitted several tickets to Apple Support. Many remain unanswered, and for those that received a response, we provided video evidence of the issue but have not received further assistance.
Critical Timeline: Our account is set to expire in just three days, making this an extremely time-sensitive matter.
Thanks
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
If you already have IOS 18.1 beta 5 can you receive the updates 18.0.1?
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hello, I'm a software developer, my teammates and I have developed a mobile application, we want to share it on the Apple Store, but we can't buy a developer account, it doesn't accept our credit cards in any way, Apple support team in my location can't help, how can I buy a developer account?
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
Developer Tools
Enterprise
Developer Program