Questions tagged [winobjc]

Windows Bridge for iOS (also referred to as WinObjC) is a Microsoft open source project that provides an Objective-C development environment for Visual Studio/Windows. In addition, WinObjC provides support for iOS API compatibility.

Getting started with WinObjC

To use WinObjC, there are a few requirements. You need: - Windows 10 - Visual Studio 2015 with Windows developer tools. Visual Studio 2015 Community is available for free here. Select (at least) the following components during installation:

1. Programming Languages -> Visual C++

2. Universal Windows App Development Tools (all)

3. Windows 8.1 and Windows Phone 8.0/8.1 Tools (all)

The best way to get started with WinObjC is to run one of the samples. We recommend starting with the WOCCatalog sample app, which demonstrates an assortment of iOS and XAML UI controls. To run the sample:

  1. Extract the SDK zip file to a local directory

  2. Navigate to winobjc/samples/WOCCatalog in the extracted directory

  3. Double-click on WOCCatalog-WinStore10.sln to open in VS2015

  4. In VS2015 right-click on the WOCCatalog (Universal Windows) project

  5. Select Set as StartUp project

  6. Use Ctrl-F5 to build and run the app

For guidance about importing your own Xcode project and other Windows Bridge for iOS SDK details, see the wiki

35 questions
9
votes
1 answer

Requests to Microsoft Store APIs always return empty lists of products / subscriptions

We have free UWP app published to the Microsoft Store with non-consumable upgrade add-ons. As new subscription billing model was introduced to public audience recently, we're planning to utilise it by adding subscription plans in the next release.…
mikejd
  • 1,540
  • 13
  • 18
6
votes
1 answer

Adding Objective C Syntax Highlighting to Visual Studio

I started to try out the new Windows Bridge for iOS (Project Islandwood). The samples work fine, but there is no code highlighting at all. I found a VS Extension called "objc-syntax-highlighting" in the bin folder and was wondering if this adds code…
Rafael Regh
  • 443
  • 5
  • 17
4
votes
0 answers

WinObjC orientation issue

I'm trying to convert an iOS project to Windows 10, it compiles and links successfully, the binary starts, but the app is not well oriented: my app is in landscape on iPad, but on Windows 10 all the UI is rotated by 90°... I've no idea on how to…
Alx
  • 257
  • 2
  • 15
4
votes
3 answers

WinObjC building project errors

I download the WinObjC files for GitHub and following all the steps. When I try to build the project, I have this problem (using Visual Studio Community 2015) These are the two errors: Severity Code Description Project File Line Warning…
Osman
  • 41
  • 1
  • 4
3
votes
1 answer

How to compile WinObjC project that uses MobileCoreServices

I'm trying to convert an IOS project with the WinObjC bridge but getting compilation error because the compiler can't find MobileCoreServices/MobileCoreServices.h is there a solution?
user3045887
  • 241
  • 2
  • 6
3
votes
1 answer

Is not calling [super init] in the init method ever correct?

In Microsoft's WinObjC UIApplication.mm file (at https://github.com/Microsoft/WinObjC/blob/master/Frameworks/UIKit/UIApplication.mm) the init method is implemented for both UIApplication and WOCDisplayMode. Neither class' init method calls [super…
Ben Pious
  • 4,765
  • 2
  • 22
  • 34
2
votes
0 answers

how to fix 'MobileCoreServices/MobileCoreServices.h' file not found error in winobjc

I want to port my ios app to windows desktop app using winobjc. I imported my xcode project using vsimporter.exe, and tried to build it. But it displays error" 'MobileCoreServices/MobileCoreServices.h' file not found". How to fix it?
Gerry. T
  • 21
  • 3
2
votes
0 answers

Can I use Win32 APIs in a WinObjC app?

I'm porting some ObjC/FoundationKit code to Windows using WinObjC. Impressed so far (well done MS!). Can I use Win32 APIs in the project? When I try to simply include "windows.h" (in a .m file) I then get errors which seem to suggest ObjC…
December
  • 584
  • 5
  • 10
2
votes
1 answer

WinObjC - Windows bridge for iOS - Getting blank black screen - Xib2Nib error

I am trying to convert my iOS application to Windows 10 application using WinObjC SDK. I was able to successfully create the .sln file of the project. I tried to build this using local machine but it was showing an error related to "Xib2Nib.exe",…
Smit Yash
  • 228
  • 4
  • 10
2
votes
2 answers

Trying to convert iOS project using WinObjC, but getting missing sys/types.h error

I'm running ....\bin\vsimporter.exe (with default settings) in my project folder and the .sln file seems to build successfully, but when I try running the simulator (on Win32 Solution Platforms, debug build), I get a bunch of errors. Most of the…
ayl
  • 384
  • 1
  • 5
  • 14
1
vote
1 answer

WinObjC: Could not acquire lock file for module 'UIKit'

When trying to port the Calculator sample from the official Windows Bridge for iOS blog, I always get the following error after converting the project and trying to compile it: could not acquire lock file for module 'UIKit' Calculator…
Robin-Manuel Thiel
  • 2,206
  • 19
  • 26
1
vote
1 answer

WinObjC: troubles when converting

Good day! I became interested in the tool from Microsoft vsimporter. There was such a problem: when I try to convert .xcodeproj project .sln project in the command line the message appears "The "project" workspace does not contain any schemes". All…
Ice T
  • 11
  • 2
1
vote
1 answer

AFNetworking for WinObjC

Since Microsoft's WinObjC is still under development, they have not supported third party library like AFNetworking. Is there any other way around to use already existing AFNetworking in iPhone. And, is Pods supported in the latest WinObjC library?
nOOb iOS
  • 1,384
  • 2
  • 19
  • 37
1
vote
1 answer

How to create a blank WinObjc Project in Visual Studio?

I can't see any template for that so how to start a new WinObjc Project ?
user310291
  • 36,946
  • 82
  • 271
  • 487
1
vote
0 answers

Anybody succeeded in converting cocos2d 2.x to winobjc?

I am trying to convert my cocos2d 2.x of iPhone projects to windows 10, but failed in compiling for many errors. Are there any developers who have succeeded in doing so? Thank you!
shenzyapp
  • 29
  • 2
1
2 3