Code Monkey home page Code Monkey logo

Comments (7)

mathieuedet avatar mathieuedet commented on July 28, 2024 1

Hello bricecesarin ! I've exactly the same issue with my project with the last Xcode version.

from bartycrouch.

donnellyk avatar donnellyk commented on July 28, 2024

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.

donnellyk avatar donnellyk commented on July 28, 2024

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.

bricecesarin avatar bricecesarin commented on July 28, 2024

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.

bricecesarin avatar bricecesarin commented on July 28, 2024

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.

bmironer avatar bmironer commented on July 28, 2024

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.

Jeehut avatar Jeehut commented on July 28, 2024

Fixed via #71.

from bartycrouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.