Setup I have 2 swift packages and I try to use stirng catalog to manage your localizations I would like to use some specific keys in these packages and some common ones (e.g. ok_button_tittle) Problem statement I really don't like the idea of creating separate (but the same) translations in these packages I have tried using something like String( localized: ok_button_title, table: Localizable, bundle: .main, comment: Ok button title ) This does use translations from the main bundle, however this does not automatically create the keys in string catalog Question Is there any possibility to reuse the translations from the main bundle? Maybe there is a hack to make the keys appear automatically in the correct bundle? Or is it a bug?
missing package product
45,757 results found
Post
Replies
Boosts
Views
Activity
Hello, Xcode's automatic string extraction always assumes that strings will be looked up from their own bundle, which is best practice for localization. The reason looking up strings from other bundles (especially higher-level bundles such as Bundle.main) is not typically recommended is because there is no guarantee that your clients will actually have those strings defined. And Xcode cannot guarantee it because your Package could be used by clients outside of your own Xcode workspace. When you do need one bundle to use strings defined in another, one safe way to do this is to have one bundle define these strings as usual, and then expose them to the other bundle via API. For example, perhaps you could have an OKButton: View type in some shared target that you could then use in dependent Packages.
Our product does use not-so-common APIs (it uses the EndpointSecurity API in AUTH mode for some events notalby), and it can have a pretty important IO activity on disk, with a memory footprint of multiple hundreds of MB. First off, I need to pass along the standard warning I pass to every developer using the EndpointSecurity API. This API is easily one of the most difficult and dangerous APIs on the system. The reasons for this include (but are not limited to...): The API scope is enormous, basically allow a client to disrupt almost everything the system does. An ES client's interactions with the system can in turn generate additional auth events. Particularly if/when multiple ES clients are involved this can create arbitrarily complex recursive loops, which can obviously be... problematic. The consequence of disrupting system performance are very difficult to predict but include everything from performance disruptions up to and including kernel panics. All of these issue are generally invisible unde
Hello guys, We are receiving feedbacks from various users facing kernel panics when using one of our products. Our analysis of the crash reports shows that all panic traces report the exact same panic cause: Sleep transition timed out after 35 seconds while creating hibernation file or while calling rootDomain's clients about upcoming rootDomain's state changes. Various versions of MacOS are affected, including the latest ones. It seems obvious, with the user feedbacks we have, that our product plays a role in those KP. But we can seen on the forums that it is not specific to our users. Our product does use not-so-common APIs (it uses the EndpointSecurity API in AUTH mode for some events notalby), and it can have a pretty important IO activity on disk, with a memory footprint of multiple hundreds of MB. My understanding of hibernation is that when it happens, the applications are frozen (i.e. with no access to the CPU), and thus that no endpoint security event would be generated dur
@DTS Engineer Is there any update or hints to this? We're back to 1970's debugging here which is time consuming for such a large team. swift-healthcheck is showing Missing Swift module or Clang module found for all our (Cocoapods) dependencies. Even attempted to use -add_ast_path manually, but the problem there is how to determine that path. All guesses have failed so far. I'm not clear why I would have to manually set those in Xcode 16 either. The code block option seems to suffering from an offset issue here too, btw. Had to fix the back ticks in the first paragraph. Not sure if @DTS Engineer is working either?
I have an iOS app that I'm trying to advertise on different platforms, such as Meta and Google. However, no matter what I do I don't manage to get visits to the App Store page. When looking at the stats in the ad platform tools, I can see that people are clicking the ads but I get no corresponding product page views in the App Store Connect statistics and no downloads. I have the same problem with both Google Ads and Metas ads producs. In both these platforms you don't assign a URL but connect the app using the ID, so there is no way of me entering the link incorrectly. This indicates that something is broken somewhere in the Apple part of the chain. When I'm testing the ads myself everything works as expected. Both Googles and Metas support (reasonably) claims that they can see no problem with the ads and that the problem is with Apple. We have had the same problem for more than a year and spent quite a bit of money without getting anywhere with the issue. I have been unable to get any relevant resp
Apparently, settings do not show anymore the apps settings in iOS 18.2. I tested on simulators (Xcode 16.2) both on iOS 18.1 and iOS 18.2 and got very different results: In iOS 18.1 simulator, I see the settings of a lot of apps. In iOS 18.2 simulator, not a single app setting. That is a really serious issue in simulator for development (I filed a bug report FB16175635), but would be really critical on device as it would make it impossible to adjust setting of many apps. Unless I missed something (meta setting ?) in iOS 18.2 ? I have not upgraded to 18.2 notably for this reason. So I would appreciate if someone who has upgraded could make the test and report ? select Settings on Home page scroll to Apps category tap here to access the list Does the list show anything ? Thanks for your help.
I was hoping to add support for SharePlay, but my app is not Universal, because it is around 5 years old. The macOS and iOS versions have different bundle ids, and making a universal app would be a bag of hurt (loss of reviews, migrating data in sandboxed environments and lots more). Am I correct that SharePlay will only work with a single bundle id? I was hoping by simply choosing the same activity type in each app they could connect, but I don't really see how it can given the activity type is hard coded, rather than configured in the Info.plist. If this is the case, it seems like a lost opportunity, not only for legacy apps like ours, but also for anyone who might want to work between apps in an app group. Presumably rather than hard coding the activity type, it could have been registered as an Info.plist configuration or entitlement, allowing apps to partake with different bundle ids, the same way it works for iCloud for example.
For anyone still finding this thread, the correct answer is that you need to check the Outgoing Connections (Client) checkbox in the App Sandbox settings panel. This entitlement seems to be required to get WKWebView working in AppKit apps. This is missing from the WKWebView documentation, so hopefully this post is helpful for anyone else. If DTS wants to give me a job, I'd be happy to scour the forums and SO to send suggestions to the documentation team. :-P
For anyone still finding this question, the correct answer is that you need to check the Outgoing Connections (Client) checkbox in the App Sandbox settings panel. This entitlement seems to be required to get WKWebView working in AppKit apps. This is missing from the WKWebView documentation, so hopefully this post is helpful for anyone else.
We've seen an issue when using a LazyVGrid inside a List. The app crashes with: Thread 1: Fatal error: is stuck in a recursive layout loop When debugging the issue, we were able to narrow down the issue to a minimum reproducible example below: struct ContentView: View { let columns = [ GridItem(.adaptive(minimum: 43)) ] var body: some View { List { LazyVGrid(columns: columns) { ForEach(0..<15) { value in if value == 0 { Text(a) } else { Color.clear } } } } } } The issue can be reproduced on iPhone 15 Pro Max and iOS 18.x specifically. In a production app we have a similar layout, but instead of GridItem(.adaptive) we use GridItem(.flexible).
I'm trying to run my app on my iPhone and XCode is unable to detect it. Versions (as of time of writing, these are all the latest versions) XCode: 15.0.1 iOS: 17.1.2 macOS: Sonoma 14.1.2 What I've tried Updating all hardware to the latest versions. Restarting all hardware. Clearing cache/derived data. Using different USBC ports/cables. Using the XCode 15.1-Beta 3 (the latest beta) Clearing trusted computers and re-trusting Disabling Multipath Networking (solution for someone else on the dev forums) Creating a brand new xcode project. Disabling all wifi/bluetooth and reconnecting Using different wifi networks Calling mac support (they directed me back here) Scouring forums What happens I start by disconnecting my phone from my computer, clear trusted computers, restart xcode, and start (basically) from a completely blank slate. First I open XCode to my project. Then I connect my iPhone via USBC. I see that XCode says iPhone not eligible while pairing in progress (or something like that). I see on my phone that
Missed mentioning this is for iOS.
i am unable to deploy the iOS app with automation using below command: ios-deploy --bundle /Users/XXXX/Library/Developer/Xcode/DerivedData/iOSClient2-XXXXXXX/Build/Products/Debug-iphoneos/iOSClient2.app/ --id 00008020-XXXXXXXXX --justlaunch --verbose with the error: ------ Debug phase ------ Starting debug of 00008120-000C713236E0A01E (D38AP, D38AP, uknownos, unkarch, 18.1, 22B83) a.k.a. 'Svt’s iPhone' connected through USB... Device Class: iPhone build: 22B83 version: 18.1 Found Xcode developer dir /Applications/Xcode.app/Contents/Developer version: 18.0 version: 18 2024-11-08 15:26:09.531 ios-deploy[33496:644410] [ !! ] Unable to locate DeviceSupport directory with suffix 'DeveloperDiskImage.dmg'. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown! Observation: Xcode 16 missing the DeviceSupport for iOS17 and above. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/.... Xcode: Version 16.1 (
Never mind. It turns out that all the targets need to have the same product name. The product name defaults to the $(TARGET_NAME). I made sure the bundle names matched, but not the product names.