Localization files in app bundle - objective-c

I have localization with 3 languages. Everything was working; then I wanted to change something in localization files.
My changes didn't have any effect, and I can't figure out the reason.
The big idea that it worked and still is finding old resources.
This is working for me when I want to print the bundle of localization file:
PATH/MyFirsy.app/en-LT.lproj> (not yet loaded)
My steps:
Getting your resource files ready for localization
Collecting all the texts used in the application in resource files
Translating the resource files
Integrating the resource files back in the application
Maybe someone who had this problem could help me.

for localization to be in affect, you also need to change your simulator's/device's language. you can check the same in your case.

Related

Is there any DSYM file for .framework (besides app)?

I am a new guy in OC programming. Now I am involved in a framework development project.
I know the framework works as a library, which contains a group of methods. It's not an application that can run on devices.
Actually, our framework will work with customer's application. We want to investigate what happened inside our framework when customer's application crashed. So I want the 'DSYM' file of our framework, instead of an application.
As far as I know any iOS application does have corresponded 'DSYM', but I didn't find the 'DSYM' of our framework.
Does iOS framework project have 'DSYM'? If it does have, how can I obtain it?
By the way, I am using Xcode 8.1.
Thanks!
According to my observations, .dSYM files are generated for iOS dynamic framework built with Release configuration only.
After build succeeds, the debug symbols files can be found at these paths, for a device and simulator, respectively:
<Build_Root>/build/Release-iphoneos/<Product_Name>.framework.dSYM
<Build_Root>/build/Release-iphonesimulator/<Product_Name>.framework.dSYM
, where
<Build_Root> is usually a subdirectory within Derived Data directory;
<Product_Name>is the name of your framework.
Yes, you can generate dSYMs for dynamic frameworks. There are a few relevant build settings that control whether and where these files are generated:
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym,
DWARF_DSYM_FOLDER_PATH = "$(CONFIGURATION_BUILD_DIR)",
DWARF_DSYM_FILE_NAME = "$(PRODUCT_NAME).dSYM"
Obviously, you can set these to whatever you want, either in your project's build settings in Xcode (the project.pbxproj file) or as arguments to xcodebuild (depending on how you generate your framework).
DSYM (Debugging SYMbols) files generally store the debugging symbols for your app. And if app crash any where symbols replaced with appropriate method name so that it could help developer in a readable form. And for that you can use the crash log and they can be find in the iPhone where the app is installed. Each app and device have their own crash log.
Also please check this link it might help you.
Read Crash Report
Upload Symbols for iOS Framework
Hopefully these might help you or guide in the right direction.

Preserve an external legacy apps file resource fork when including in an Xcode archive

I have created a cocoa application primarily to run on OS 10.6.8. to convert certain types of proprietary legacy files. The app looks at the legacy files creator code and processes it accordingly if it is a known type. Once the file is identified, I call an external legacy app (which I have added to the project) using [NSWorkspace openFile: withApplication: ]to open the droplet and process the file conversion.
The application works just like it is supposed to until I archive it and try to run it from the application bundle. Actually, it will continue to work but it is using the converter app from the project. If I delete the converter in the project area, then the app in the app bundle can not open the external app in that location. One work around is to delete the external app from the bundle after its archived and replace it with a copy of the one in the project area.
I would appreciate any suggestions on resolving this. I'm not sure if the problem is in some Xcode build setting I can change to include an external apps resource fork when archiving, or if this is a launch services issue with apps hidden in packages, or , something I'm not even considering.
Thanks
Mike
Try setting the "Preserves HFS Data" (COPYING_PRESERVES_HFS_DATA) build setting.

changes to JS file not reflected in VS2012 build in ASP MVC 4

This has happened a few times already and it's pretty frustrating.
I make some changes to one of my Javascript files. Then I save the changes and proceed to test the build in IE.
All my changes are not reflected in the dynamic version of the file.
So far, I have fixed the problem by changing the file name and reincluding it in my bundle.
(The MS forums only tell me that I might be editing a wrong version of the file, which is not the case. See above.)
I am new to Windows so I figure there might be something I'm doing wrong...
Take a look at this solution: Force reload of JS and CSS files with ASP.NET MVC 3.

Creating a Cocoa Framework & using it from another Cocoa project

OK, I know this question seems pretty easy to answer, or maybe documented, but I'm honestly 100% confused around the subject, with effects as... silly as submitting an application for review by Apple and then realizing (by the logs they sent me back), that the Framework wasn't there (actually, it was... but my Cocoa app was looking for it elsewhere).
Ok, so... let's say I have a framework with like 100 different classes I mostly use (which I do have), what settings should I use if I want to "bundle" my Framework with my apps (and copy it in the framework folder of the app bundle)?
Build Settings -> Installation Directory? (of the Framework)
Build Settings -> Header Search Paths? (of the App)
Build Settings -> Library Search Paths? (of the App)
Build Settings -> Framework Search Paths? (of the App)
use #rpath? and how?
anything else?
Given that I mostly have issues "linking" my frameworks to my apps (the framework compiles great, but there may be a runtime error occasionally when the app using it tries to run (which I... occasionally manage to solve - but without actually knowing how... lol)), what would you suggest?
Third party frameworks should be included with the app in a Frameworks directory of the app bundle.
Add a new copy files build phase and specify the Frameworks directory, then add your frameworks to this directory:
You may also need to tell Xcode where the frameworks are by adding a Framework Search Path like "$(SRCROOT)/MyFrameworks".

How would i build installer in my project?

i was having error while making the installer in my program.
I have images inside the debug folder and i use those images in my program.
I successfully create the installer the problem is that when i run it it gives me
an error message looking for my Images folder.
How do i solve this? Thank you
If this is a VisualStudio setup project, make sure that you:
include your Images folder and the images in it in your solution
make sure you set BuildAction property for all images you need to Content
let your setup project also install content from the right project to the correct place in the file system where your application expects these images
build you setup project and test if the installer installs the images as expected
(This is just a quick answer to perhaps get you started in the right direction. Your question doesn't seem all that clear, so perhaps I misunderstood the problem you're having completely.)