Skip to main content
0 votes
1 answer
37 views

Consider the following Cocoa project structure: Host |-- LoadablePlugIn | |-- Main.storyboard | |-- Info.plist | |-- TDWLPIClassOne.h | |-- TDWLPIClassOne.m | |-- TDWLPIClassTwo.h | |-- ...
Aleksandr Medvedev's user avatar
1 vote
0 answers
99 views

I try to get the localized name of an app on MacOS. static void printBundleInfo(NSBundle *bundle) { auto printNSString = [](NSString *s){ INFO << QString::fromNSString(s); }; INFO << &...
ManuelSchneid3r's user avatar
0 votes
1 answer
2k views

I want to find the appropriate localized string based on some runtime variable and fall back to a default string: // localizable.strings "com.myapp.text1" = "The default text 1&...
de.'s user avatar
  • 8,787
0 votes
1 answer
852 views

I have developed a framework that consists of some colors in the asset catalogue. I packaged it in the cocoapod and integrated in another project where I try to access the assets from the framework. ...
lawicko's user avatar
  • 7,364
1 vote
1 answer
59 views

I am working on a SIMBL Plugin that is loaded by a 3rd-party host application on macOS. It is almost entirely written in C++ and has only minimal objective-c components. (The UI is largely provided by ...
rpatters1's user avatar
  • 466
4 votes
1 answer
257 views

I have a code like this in my app: NSString* version = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey]; In most cases it works, and returns the Bundle version, but ...
olha's user avatar
  • 2,302
0 votes
0 answers
232 views

I have the following code. NSString *path = [[NSBundle mainBundle] pathForResource:@"play" ofType:@"mp3"]; The code above gets from mainBundle (Application Bundle) a file play.mp3 ...
stefanosn's user avatar
  • 3,324
2 votes
1 answer
2k views

Is it possible to find all localization tables which are available in a iOS Project? Background: In a Swift based iOS project I am using multiple, localized .strings files. For example one file ...
Andrei Herford's user avatar
1 vote
0 answers
158 views

My team is experiencing a very odd issue with Apple's On Demand Resources framework. It's a randomly occurring problem where a user will successfully download one of our resources yet when we try to ...
Anthony Guella's user avatar
-1 votes
1 answer
330 views

I am receiving this error and I checked every answer there is online on how to solve this and it does not work for me. I tried cleaning the build folder, I do not have a xib file, reuploading the ...
Benjamin Sloutsky's user avatar
0 votes
1 answer
2k views

In my iOS app I am using SPM to manage dependencies. One of them is a library that loads resources with Bundle.module (a new feature available in Swift 5.3). But now I need to use CocoaPods for my app....
Roman Podymov's user avatar
1 vote
0 answers
148 views

I have a project comprising multiple frameworks, a couple of which need to initialize UIImage instances. UIImage's initializer defaults to using Bundle.main if you don't specify a Bundle. This means ...
shim's user avatar
  • 10.3k
1 vote
1 answer
58 views

Our iOS app is translated into 19 languages, and recently I found an issue where two buttons on a screen had the same title - which mean that users couldn't tell which to press! I want to write a unit ...
bryanjclark's user avatar
  • 6,424
1 vote
1 answer
672 views

Here I want to achieve a function which can copy a res file from main bundle (which is added manually from Mac Finder to Xcode project ) (Fig 1) to Document Folder. Click here to see the Xcode project ...
LinChiSin's user avatar
0 votes
1 answer
96 views

When using NSBundle, is there a macro such as $(APP_BUNDLE) or something similar, so that I can use a specific file?
user avatar

15 30 50 per page
1
2 3 4 5
38