Comments (4)
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:
- Open VSImporter.sln.
- Right-click on the vsimporter project, and select Set as StartUp Project
- 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.
- Build and run the tool to see where it fails.
from winobjc.
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.
from winobjc.
@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.
@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)
- What versions of Windows are supported? HOT 2
- Unable to activate Windows store app. HOT 4
- Switch to `__objc_msg_forward2` for better forwarding efficiency HOT 1
- Can not install winobjc with win10 HOT 1
- -[NSObject conformsToProtocol:] does not work.
- clang hangs when compiling using optimisation flag -Os HOT 2
- Does Windows Bridge supports Metal Framework? HOT 1
- Does Windows Bridge supports OpenGL? HOT 1
- G HOT 1
- On running ios project(in Objective-C) throws error
- c sharp
- Ggg
- hhh HOT 3
- Bring WinObjC to WSLg, either exclusive to CUDA and DX12, or for all Linux with Vulkan. HOT 1
- ()R
- This repo is missing important files HOT 1
- has anyone tried newer versions of VStudio w/ this project? HOT 6
- nugetizer-2017 online package is missing HOT 2
- Need some updated instructions re installation in newer VS versions (2019 and up) HOT 4
- 使用vs2019 编译错误,什么时候改为#include <typeinfo> HOT 1
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 winobjc.