Comments (7)
Hello bricecesarin ! I've exactly the same issue with my project with the last Xcode version.
from bartycrouch.
I am also seeing this.
The bartycrouch interfaces
command hangs indefinitely, but if I run /usr/bin/ibtool --export-strings-file
directly, the strings are still exported, though with a bunch of warnings: 2017-09-13 13:37:43.724 ibtoold[3253:4694192] WARNING: Unhandled destination metrics: (null)
(which are being read correctly in the errPipe
)
xcode-select points to the GM right now (though I have the old Xcode still installed)
ibtool --version:
<key>bundle-version</key>
<string>13196</string>
<key>short-bundle-version</key>
<string>9.0</string>
The nib it hangs on does have autolayout errors and if I delete the views causing the errors, bartycrouch runs fine. (Right now, I can't figure out a way to resolve the errors, IB is being weird).
I'm trying to create a simple nib from scratch that exhibits the same problem. I'll share here if I'm successful...
from bartycrouch.
If I had to make a guess, it seems like this new version of ibtool isn't giving an end-of-file indicator to standardOutput
when there are errors (in this case, warnings).
It looks like commenting out let outdata = outpipe.fileHandleForReading.readDataToEndOfFile()
(so just ignoring the standard output) and the rest of the command runs fine, the string files get made.
Not that this is an actual solution or anything, just experimenting.
from bartycrouch.
when I launch ibtool command from command line :
/usr/bin/ibtool --export-strings-file [myTmpStrings] [MyXib]
the warnings :
WARNING: Unhandled destination metrics: (null)
are appearing for all xib (event those which works).
It seems like the output are not different from the working xibs and the no-working xib.
Still, fileHandleForReading.readDataToEndOfFile()
does not end for the no-working xib.
from bartycrouch.
The only output difference is :
/usr/bin/ibtool --export-strings-file [myTmpStrings] [MyWorkingXib]
: less than 250 warnings
and
/usr/bin/ibtool --export-strings-file [myTmpStrings] [MyNoWorkingXib]
: more than 250 warnings
Same thing with my 2 projects
from bartycrouch.
I got a fix.
Simply reading stderr before stdout solves it.
Pull request incoming after a few more tests.
update: pull request #70 pending...
from bartycrouch.
Fixed via #71.
from bartycrouch.
Related Issues (20)
- Can't build project after upgrade bartycrouch to 4.8.0
- Explicit folders on the `codePaths` argument shouldn't be ignored later. HOT 5
- NSLocationTemporaryUsageDescriptionDictionary translations gets removed HOT 6
- Cocoapods executable doesn't work on x86 machines HOT 19
- Embed lib_InternalSwiftSyntaxParser.dylib into package HOT 3
- error: the target 'SwiftSyntax' in product 'SwiftSyntax' contains unsafe build flags HOT 4
- Support for none default Xcode install path HOT 1
- Add new line on every translation after normalize HOT 2
- Translate successful but no output for Storyboards Main.string file HOT 3
- BartyCrouch with SwiftGen creates empty string values HOT 2
- [Feat] Autogenerate `.strings` files HOT 3
- `overrideComments` option doesn't work HOT 4
- [Bug] CI failed for version 4.12.0 HOT 2
- [Bug] update.code with additive=false and code in multiple parent directories looses strings HOT 5
- [Feat] Tip: How to localize LocalizedStringResource types with bartycrouch HOT 3
- [Feat] Support for modular application HOT 4
- [Bug] Translation Microya.ApiError<Microya.EmptyBodyResponse> error 3 HOT 2
- [Bug] PodSpec does not support iOS anymore HOT 7
- [Feat] Extract localizable Strings from SwiftUI Text HOT 1
- [Question/Bug] : .bartycrouch.toml permission errors on dependent test build HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bartycrouch.