Search results for

Building for iOS Simulator, but the linked and embedded framework ‘XX.framework‘ was built for

186,325 results found

Post

Replies

Boosts

Views

Activity

Reply to Foundation models not detectable in Xcode simulator
Hi @SuyashBel, To run Foundation Models in Simulator, ensure that macOS is up to date. Utilizing Foundation Models framework in the Simulator requires macOS Tahoe, with Apple Intelligence enabled on the Mac. (System Settings -> Apple Intelligence) This will trigger a download of the model, which can also take a little time. Additionally, make sure the simulator is running 26 or later. It can also be helpful to ensure you're using the latest version of Xcode. If everything is updated and you're still having trouble, try restarting your Mac. If all that still fails, let us know and also please file Feedback so we can track this issue. Best, -J
1w
Simulator since XCode update completely broken
Since one of the last updates of XCode, there are two very annoying bugs in the simulator that just don't get fixed. What's going on Apple? You kill my productivity. There is a red bar reading rdar and some numeric string at the top. You can get rid of it by going to Settings -> Developers -> Zoom -> Larger Text (then change it back). Took a while to find that. I have a German laptop with a QWERTZ keyboard layout. Now when I type, it somehow sends keys from an US keyboard to the simulator. Since I don't have the labels, I don't know what the hell I'm typing. Very frustrating. Please fix this.
3
0
92
1w
Reply to Foundation models not detectable in Xcode simulator
Thanks for the post, I have only questions for you to narrow down and make sure I understand the platform not working. Can you provide me the version of Xcode and what simulator are you using to ensure that the simulator you're using is compatible with the Foundation Model framework. Since your M1 Air and iPad Pro M5 are both Apple silicon devices, the simulator should generally support the latest frameworks. Make sure you have the latest version of Xcode installed. Update the simulator images to the latest version available. If possible, try running your app on a different simulator that you know works well with your app. You can choose from a list of simulators available in Xcode. Can you provide me that? Can you provide me exactly the error you are getting in the simulator. Look at the error logs in Xcode for more specific information about what might be causing the issue. This can help in diagnosing the problem more accuratel
1w
Reply to How to setup UIApplicationDelegate that uses UIScenes for mirroring with AirPlay
Dear s_petrovskiy2, Just for clarification, can you please answer: By mirroring, you mean that the external device would be displaying identical content to what is on your iPhone, correct? Are you using storyboards, and defining your scenes in your Info.plist? If so, then you would not need to handle scene:willConnectToSession:options: for the default configuration of your root view controller main device screen. (If you are loading it programmatically, you would need to, as seen in Tech Note TN3187: Migrating to the UIKit scene-based life cycle; but since your window has already been created, it sounds like you are using the Info.plist method. In which UIWindowSceneDelegate delegate method are you seeing a second scene created? When does it take place during your app's operation? After connecting to the AirPlay receiver (your MacBook)? How are you initiating an AirPlay connection with your app- are you using the built-in Screen Mirroring button in iOS? Please let me know, Richard Yeh  Deve
Topic: UI Frameworks SubTopic: UIKit
1w
Reply to iOS App never gets Bluetooth connection
I am going to suggest that your issue is more structural than a Bluetooth connection problem if even print(App initializing) is not printing. Once you get that working (perhaps start with a clean Hello world! project to make sure your code is running. And then you can add the Bluetooth functionality to it using examples. Unfortunately our sample projects are a bit dated, and outside the watchOS sample Interacting with Bluetooth peripherals during background app refresh, we don't have any SwiftUI examples that demonstrate CoreBluetooth. Currently, the CoreBluetooth framework is not fully compatible with SwiftUI, and requires the use of @UIApplicationDelegateAdaptor var delegate: ApplicationDelegate and handle your CoreBluetooth logic in a UIKit class. In the above example, you will find an iOS target BARBluetooth, which will show how the SwiftUI/UIKit integration is handled. (do not consider the code there as a full example though, as that is a specific app that only accompanies the watchOS a
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to UserDefaults.standard losing all data on iOS26
Thanks for your post, I do not know of any issues with UserDefaults in iOS 26, so this is interesting, I would like to learn a little bit more how you use this I'm sorry to hear about the persistent issue you're facing with data loss in your app on iOS 26. Ensure your app and the iOS device are running the latest system updates. Verify that your app has the necessary background modes enabled, such as Background fetch or Background location updates. These modes can help ensure your app can read and write data even when not actively running. However going to the background will not lose any data. Ensure that your app is not inadvertently clearing data in a location that's causing issues. Conduct extensive testing on real devices across different configurations and environments to see if the issue is device-specific or platform-specific. Not in the simulator. My recommendation is to create a simple focus project that you can show the issue that I can run on a device. Implement
Topic: App & System Services SubTopic: General Tags:
1w
Minimum Functionality Rejection Blocks My App's Users
Parents often spend lots of time to search for kids' events and government programs. Even after they found ideal ones, they need lots of copy and paste to check Google Map in order to align with their time and location. My app is designed to solve this pain point. It will handle those time consuming web search and time & location matching. For good user experience, the UI is simple, it recommends nearest kids programs that aligns with parents' time. It also has a Map to show suggestions visually and provides map navigation. Parents are all very busy, the UI has to be simple and easy to use. This app can save parents 60% of time to find kids' programs. The v1.0.0 of this app got approved. It works well on Android phones all the time, but the map navigation didn't work on iOS. I later realized have to add LSApplicationQueriesSchemes to enable map navigation on iOS app. So I fixed this and tested the new build on iOS phones, the new build 1.0.1 works well. But App
1
0
45
1w
Foundation models not detectable in Xcode simulator
I'm building an app which runs around the Foundation model framework. My expected output is generated when testing on a real device or in preview in Xcode but it throws Foundation Model error when I try running it on the simulator. I'm using a Macbook M1 air and have apple intelligence turned on and my simulator run destination is also an iPad Pro M5 (26.0). Any solution for this as this is my submission for the SSC so I need to make it work on the simulator iPad. Thank you👾
5
0
139
1w
Reply to Localizing NSAlarmKitUsageDescription
Thanks for the post, this is very interesting, can you provide a little more context about how Xcode marks the string as stale? Screenshots or a way to reproduce it quickly? This is the key you ad adding into your Info.plist? https://developer.apple.com/documentation/BundleResources/Information-Property-List/NSAlarmKitUsageDescription Ensure there are no hidden characters or encoding issues in your InfoPlist.xcstrings file that might confuse Xcode. What happens when you keep it only in the Info.plist? Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project. Thanks, Albert Pascual
  Worldwide Developer Relations.
1w
iOS mTLS Client Certificate Authentication Fails in TestFlight with Error -25303
iOS mTLS Client Certificate Authentication Fails in TestFlight with Error -25303 Problem I'm building an iOS app that uses mTLS (client certificates received from server at runtime). Storing SecCertificate to keychain fails with error -25303 in both development and TestFlight builds, preventing SecIdentity creation needed for URLSession authentication. Environment: iOS 18.2, iPad Pro, TestFlight internal testing, keychain-access-groups properly configured Diagnostic Results Testing keychain operations shows an interesting pattern: ✅ Generic Password - Works: let addQuery: [CFString: Any] = [ kSecClass: kSecClassGenericPassword, kSecAttrAccount: test, kSecValueData: password.data(using: .utf8)! ] SecItemAdd(addQuery as CFDictionary, nil) // Returns: 0 (success) ✅ SecKey - Works: let addKeyQuery: [CFString: Any] = [ kSecClass: kSecClassKey, kSecValueRef: privateKey, kSecAttrApplicationTag: tag ] SecItemAdd(addKeyQuery as CFDictionary, nil) // Returns: 0 (success) ❌ S
3
0
111
1w