nsbundle Questions
9
I have an Xcode 5 unit test project and some test xml files related to it. I've tried a bunch of approaches but I can't seem to load the xml files.
I've tried the following which does not work
NS...
Oberg asked 3/10, 2013 at 5:25
2
Solved
I'm working on a macOS tool which uses Apple's Safari framework. When running in macOS 10.13, the tool links to and loads it from
/System/Library/PrivateFrameworks/Safari.framework
and all works...
Lillian asked 20/3, 2018 at 2:13
7
After I run ProjectNameTests.m (empty test file) by doint Product -> Test the project builds successfully, but it throws and gives me the following error:
2016-01-10 11:25:32.677 xctest[66104:5...
Gillies asked 10/1, 2016 at 10:30
17
Solved
I am attempting to gain access to the main NSBundle to retrieve version and build information. Thing is, I want to try it in Swift, I know how to retrieve it in Objective-C with:
text = [NSBundle.m...
Manard asked 1/7, 2014 at 1:34
2
Solved
I want to be able to add plugins for an application I am developing and as it is a development tool I want other people to be able to write their own plugins.
So my questions are what are the real...
4
Solved
I have a project which I am migrating from Obj-C to Swift 3.0 (and I am quite a noob in Swift).
How do I translate this line?
NSString *folder = [[[NSBundle mainBundle] resourcePath] stringByAppe...
3
Solved
Is it possible to get the containing app's NSBundle from within an app extension? I would like to get the main app's display name, not the extension's display name.
Maryannmaryanna asked 4/10, 2014 at 2:34
10
Solved
I'm creating a simple application with xcode and objc and I need to load an NSDictionary from a file, but I can't get the path to the file using NSBundle:
NSString *l = [[NSBundle mainBundle] path...
Citron asked 16/10, 2010 at 14:52
3
Solved
I am trying to get a strings file table for use with NSLocalizedStringFromTableInBundle.
I am using this method:
+(NSBundle*)getBundleForLang:(NSString*)lang{
//get the path to the bundle
NSStr...
Vanna asked 8/12, 2011 at 22:52
2
Solved
I'm making an app that makes use of a framework that I'm creating.
The framework contains storyboards but in some cases the project making use of the framework will need to override the storyboard...
Miraflores asked 26/7, 2016 at 12:45
12
Solved
Is there a way to get the current application icon in a cocoa-touch app?
Thank you.
Abaca asked 23/2, 2012 at 18:49
6
Solved
In Swift, you can call
let bundle = NSBundle(forClass: self.dynamicType)
in any class and get the current bundle. If you NSBundle.mainBundle() this will fail getting correct bundle when for exa...
5
Solved
I am developing an iOS framework which includes image resources, I call the methods below in the framwork,
crossImage = [UIImage imageNamed:@"cross"];
arrowImage = [UIImage imageNamed:@"arrow"];
...
Schuck asked 28/2, 2015 at 3:12
8
Solved
When I test the app on the simulator, I get the following:
Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Could not load NIB in bundle: 'NSBundle <...> (loaded)' w...
Wordsmith asked 29/8, 2013 at 10:8
4
during the progress of my app I decided to change from using a UIStoryboard to .xib file, and now I get the error:
Could not find a storyboard named 'Main' in bundle NSBundle
How can I fix this ...
Bogle asked 9/9, 2014 at 8:1
8
Solved
I am trying to write an iOS app using TDD and the new XCTest framework. One of my methods retrieves a file from the internet (given a NSURL object) and stores it in the user's documents. The signat...
3
We're getting these kind of error messages:
Could not load the "iconStatus" image referenced from a nib in the bundle with identifier "com.company.OurResourceBundle".
Basically, we put a bunch of...
7
I am working on getting the facebook API working for iOS, and the FB registration page requires the Bundle ID of the project. How can I get this information? I read something about getting it at ru...
6
Solved
I'm getting this log warning while using my app and I'm not sure how to deal with this message:
2014-10-21 12:57:54.472 App[7067:2540152] Localizable string "(A Document Being Saved By %@)" not ...
Rockefeller asked 21/10, 2014 at 12:35
7
Solved
I am trying to write a simple IO wrapper for Swift.
To test this I have a file named "Test.txt" in my project root.
I have added this file to Build Phases within Build Bundle Resources, as sugges...
Mercuri asked 6/7, 2015 at 4:57
5
Solved
4
Solved
Suppose I have an arbitrary set of files included in the Main App Bundle. I would like to fetch the file URLs for those at launch and store them somewhere. Is this possible using NSFileManager? The...
Eggplant asked 30/8, 2012 at 21:27
3
Solved
I'm trying to get the file path of a file called "temp.pdf" which is located in the NSTemporaryDirectory folder (I've checked, the file exists).
I use this:
NSString *filePath = [[NSBundl...
Staley asked 16/8, 2011 at 13:18
8
Solved
I've built a static library that makes heavy use of the Core Data framework. I can successfully use the library in my external project, but ONLY if I include the .xcdatamodel file in the main proje...
Metabolite asked 10/11, 2009 at 22:8
5
Solved
I am using the following code in my Cocoa project to call a script I made. The script is in the same folder as the project and even shows up under the "Resources" folder in Xcode. The proper path i...
Taranto asked 11/7, 2010 at 0:54
1 Next >
© 2022 - 2025 — McMap. All rights reserved.