iOS-Universal-Framework icon indicating copy to clipboard operation
iOS-Universal-Framework copied to clipboard

how to contain *.strings file in .embeddedframework/Resoures?

Open Kofktu opened this issue 13 years ago • 10 comments

hmm,

i make App.strings file

strings file has localize (korean, english, chinese)

project setting -> build phases -> Copy Bundle Resources -> Add strings files(en.lproj, ko.lproj, zd...lproj)

build and when use,,

not found strings file...

how would it be to contain strings resource ?

Kofktu avatar Jul 24 '12 08:07 Kofktu

It looks like the script is not making symlinks to the strings files.

   └── Products    └── Debug-iphoneos    ├── Localized.embeddedframework    │   ├── Localized.framework    │   │   ├── Headers -> Versions/Current/Headers    │   │   ├── Localized -> Versions/Current/Localized    │   │   ├── Resources -> Versions/Current/Resources    │   │   └── Versions    │   │   ├── A    │   │   │   ├── Headers    │   │   │   │   ├── Localized.h    │   │   │   │   └── LocalizedVCViewController.h    │   │   │   ├── Localized    │   │   │   └── Resources    │   │   │   ├── Info.plist    │   │   │   ├── LocalizedVCViewController.nib    │   │   │   ├── en.lproj    │   │   │   │   ├── InfoPlist.strings    │   │   │   │   └── MyFramework.strings    │   │   │   ├── es.lproj    │   │   │   │   └── MyFramework.strings    │   │   │   └── ja.lproj    │   │   │   └── MyFramework.strings    │   │   └── Current -> A    │   └── Resources    │   └── LocalizedVCViewController.nib -> ../Localized.framework/Resources/LocalizedVCViewController.nib    └── Localized.framework -> Localized.embeddedframework/Localized.framework

I'll need to think up a fix for this, but for now, you can go into the built products dir in a shell and manually add the symlinks.

kstenerud avatar Jul 24 '12 14:07 kstenerud

how add the symlinks? tell me the solution shell script..

Kofktu avatar Jul 26 '12 05:07 Kofktu

bump

jenner2222 avatar Nov 09 '12 00:11 jenner2222

Hi there,

is the issue planned to be fixed in the future? It would be awsome if the framework could handle localized files likes Localizable.strings

Has anyone a good workaround yet?

Thank you!

arianox avatar Jun 04 '13 15:06 arianox

Unfortunately, I've gotten so bogged down with work that I haven't had any time to look at the universal framework project in some time, and I don't know when I will have the time :(

The beta branch is the way of the future as it switches to a python solution that actually reads the project file, but I need a champion who can step up and continue it, as I'm not giving it anywhere near the attention it requires...

kstenerud avatar Jun 04 '13 15:06 kstenerud

Too bad :( Thank you anyway!

arianox avatar Jun 04 '13 15:06 arianox

I was just building a project and ran into this same issue.

I found the following on line 716 of the build script for file in filter(lambda x: x != "Info.plist" and not x.endswith(".lproj"), os.listdir(os.path.join(fw_path, "Resources"))):

I removed the following line and now my project is working. I don't know if this will cause other problems. and not x.endswith(".lproj")

New line

for file in filter(lambda x: x != "Info.plist", os.listdir(os.path.join(fw_path, "Resources"))):

WarSunsOfPeace avatar Jun 04 '13 20:06 WarSunsOfPeace

Nice! Can you tell me which build/script file it is?

arianox avatar Jun 05 '13 07:06 arianox

Works! Thank you!

arianox avatar Jun 05 '13 13:06 arianox

Sorry, it was in the mk8 python script in the Run Script of the build phases. When get a chance I will update the github project with a pull request.

WarSunsOfPeace avatar Jun 05 '13 14:06 WarSunsOfPeace