freshOS/Localize

PhaseScriptExecution failed with a nonzero exit code

Tommecpe opened this issue · 1 comments

I use to use and love your lib, thank-you for the great work done. But, for a reason I cannot explain, I'm not able to build my projet anymore. The script failed.

I'm building the Localized example project and here is the error:

Command PhaseScriptExecution failed with a nonzero exit code

And some of the stack trace:

JIT session error: Symbols not found: [ _$s10Foundation12CharacterSetVMa, 
_$s10Foundation12CharacterSetV8newlinesACvgZ, 
_$sSy10FoundationE18trimmingCharacters2inSSAA12CharacterSetV_tF, 
_$sSS10FoundationE14contentsOfFile8encodingS2Sh_SSAAE8EncodingVtKcfC, 
_$sSS10FoundationE19_bridgeToObjectiveCSo8NSStringCyF,
 _$s10ObjectiveC8ObjCBoolVMn, 
_$sSy10FoundationE5write6toFile10atomically8encodingyqd___SbSSAAE8EncodingVtKSyRd__lF, 
_$s10Foundation22_convertNSErrorToErrorys0E0_pSo0C0CSgF, 
_$sSy10FoundationE20replacingOccurrences2of4with7options5rangeSSqd___qd_0_So22NSStringCompareOptionsVSnySS5IndexVGSgtSyRd__SyRd_0_r0_lF, 
...

It may not be directly linked to freshOS/Localize but maybe you have some hint ?

This can be solved by changing the root path of Localize.swift file on Run Script.
In my case I set it like this ${SRCROOT}/Localize.swift also notice that Localize.swift includes hardcoded paths for searching and scanning files. I forked the project and added a new way of locations method, check it out.