Coder Social home page Coder Social logo

vsimporter crashes about winobjc HOT 4 CLOSED

gabrielmaldi avatar gabrielmaldi commented on May 18, 2024
vsimporter crashes

from winobjc.

Comments (4)

asimonov-msft avatar asimonov-msft commented on May 18, 2024

I will try to add more logging to the tool in the future. In the meantime, the fastest way for you to diagnose the problem would be to build vsimporter yourself and see where it crashes.

If you did not perform a recursive clone of the WinObjC repository, you will need to initialize a few submodules required by vsimporter. To do so, run the following commands in a Git Bash window:

git submodule update --init tools/vsimporter/third-party/sole
git submodule update --init --recursive tools/vsimporter/third-party/PlistCpp

To generate a Visual Studio solution for building vsimporter, run the following commands in a Command Prompt window (requires cmake to be installed):

mkdir tools\vsimporter\build
cd tools\vsimporter\build
cmake ..
explorer .

To build and run the tool:

  1. Open VSImporter.sln.
  2. Right-click on the vsimporter project, and select Set as StartUp Project
  3. Right-click on the vsimporter project again, select Properties -> Configuration Properties -> Debugging and customize the Command Arguments and/or Working Directory. At the very least you will need to specify the SDK location (I would recommend using a pre-packaged version of the WinObjC SDK) and the location of your Xcode project.
  4. Build and run the tool to see where it fails.

from winobjc.

triplef avatar triplef commented on May 18, 2024

I have the exact same issue, crashing after the same log message. I’ve run it in the debugger as suggested and from what I can tell it seems to be caused by SBBuildPhase::create() calling SBFrameworksBuildPhase::create() with a NULL phase parameter in this code (see also screenshot below):

  // Force creation of a PBXFrameworksBuildPhase and/or PBXResourcesBuildPhase,
  // if they were not created explicitly.
  if (sourcesPhase && !frameworksPhase)
    ret.push_back(SBFrameworksBuildPhase::create(NULL, parentTarget));
  if (sourcesPhase && !resourcesPhase)
    ret.push_back(SBResourcesBuildPhase::create(NULL, parentTarget));

Simply returning in SBFrameworksBuildPhase::SBFrameworksBuildPhase() and SBFrameworksBuildPhase::writeVCProjectFiles when m_phase is NULL allowed the import to complete for me, but I’m not sure if that’s the right way to fix this...

Let me know if you need more info.

screenshot 2015-08-28 15 12 59

from winobjc.

asimonov-msft avatar asimonov-msft commented on May 18, 2024

@triplef You are absolutely right. I've checked in a fix for the issue to our internal repository. It should get merged into github in the next few days.

from winobjc.

gabrielmaldi avatar gabrielmaldi commented on May 18, 2024

@triplef thank you for your help. @asimonov-msft I've been snowed under with work and haven't had a chance to dig into this. Do close this issue when that commit is merged.

from winobjc.

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.