Default NSDocument-based MacRuby application broken under XCode 4 - xcode4

I'm using MacRuby 0.10 and XCode 4 where I have created a default NSDocument-based application. When building and running the app, however, no window shows, and the usual menu commands are largely disabled.
When creating a regular Cocoa-based application, the main app window shows just fine.
Does anyone have an idea what the fix is?
Dan;

Manually add a DocumentType to your target. Use a basic Objective-C project as an example.

Related

Xamarin forms iOS changed AppIcons but remains showing old default

Starting from a standard Xamarin forms app template and changing the app icons in assets.xcassets, I am unable to make this take effect. The initial xamarin icon keeps showing when deployed to physical devices.
In assets.xcassets, I added all the required image sized.
I ensured that in plist info this asset was set as app icons source.
I have tried cleaning, rebuilding and deleting from the ipad and iphone I am testing with. No success.
I tried deleting the default asset and creating a new one, and make pinfo point to this, and still the old Xamarin icon shows up. This makes me think that there is a cache somewhere on either my windows pc, on which I am developing using vs2019, or on the mac which VS is connected to for doing the actual build, and this is not getting updated, since otherwise that old icon should not exist any longer.
I did read this answer
Xamarin forms: Launcher icon for ios
Which indicates that the OP has a problem with a mismatched path to the asset, but that does not seem to be the case for me. The xcasset folder is at the root of the ios project. As this is simply the default test project it is app1/App1.ios/Fawk.xcassets and the entry in pinfo is
XSAppIconAssets
Fawk.xcassets/AppIcons.appiconset
Does this make any kind of sense?
Edit: Tried vs2019, xamarin forms template. Deleted default asset in assetcatalogs under ios, created a new one, set all my custom icon images (png), updated info.plist/visual assets/appicon to my new asset and then ran it on a physical device. The default xamarin icon is what shows up. This seems to indicate it is not a cache issue, as I suspected, but... something else...
You can right-click Assets.xcassets and view it in the folder, there is a json file in it, please check if the file name is correct.
According to the official documentation, if you are not connected to a Mac, it will only display the original image. For more information, you can check: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/hot-restart#limitations

How to include Android.Support.v4 in Xamarin Forms (iOS)?

I am using Visual Studio For Mac. My Xamarin Forms project is quite large and contains many content pages. Some of them will be only used in android project and some of them only used in iOS project. There is no problem when I compile the project into android. However, when I want to compile the project into iOS, it seems like did not accept anything related to android. Please refer to the screenshot. There is no way I can include the android specialised reference and compile into iOS project. So, any idea to deal with this? Maybe there is a way to force build the iOS project no matter what? The error from the screenshot is from the page that will be only used in android. So what I can do for now is delete the page when I want to compile as iOS and recreate the page when I want to used it for android. But there are plenty of them, it is too heavy for me to do this every time. Please help.
You can't call platform specific APIs at the .NET standard libraries that are used to host Xamarin.Forms code by default.
Basically you have those options:
1) using shared project instead of library and using conditional compiling (easier but it is now not available as the option when creating the project)
2) using dependency injection.

Visual Studio Apache Cordova - IOS build rotation issue

I'm a starter in writing app code in Visual Studio 2013 Community Apache Cordova and have managed to connect VS2013 with my Mac. Once I have gone through the process of building the app in VS and on my Mac and installing in on my iPhone, I open it up and it won't rotate. It doesn't rotate for a number of basic apps that I've written nor does it rotate if I build the default new project "Hello, your application is ready!" app.
I have done some research and tried changing the config.xml "Orientation" preference to "both", through the code window and also in the designer window but that doesn't change anything. I've also noticed that adding in a "BackgroundColor" preference doesn't work either.
Does anyone know if I may have configured something incorrectly or perhaps need to add something to my code?
All the HTML, JS and CSS that I've written seems to work okay (with the exception of trying to link URLs to the Safari Browser but that's another issue).
I have noticed the same issues. I tried finding some settings to fix that in the config.xml, but was not successful. I have resolved myself to just opening the iOS project in XCode and changing a few things:
Device Orientation: no matter the config.xml setting, its always only Portrait. I click-check the other 3 orientations.
Team: I have multiple developer profiles, and I need to choose correct one here.
Bundle Identifier. I screwed up one project, and have different case for iOS and Android. I leave the VS one as the Android one, so I can build completely correct for Android. Since I know I have to go to XCode for iOS anyway, I change the bundle identifier here.
You can find the project using Finder at ~/remote-builds/builds/9999/cordovaApp/platforms/ios/*.xcodeproj, where 9999 is the build number, though not necessarily the latest, largest number, but the latest datetime of the folder.
You can also refer to Greg's answer in this related post as an alternative solution.

Air AutoUpdate & Windows 7 pin icon

I've created an Air app for use in work. To make things slightly easier, I pin the icon to taskbar (Windows 7). The app uses the auto-update framework (default), which works fine.
After I update though, the pinned icon becomes a default blank page icon. If I click on this icon, Windows will tell me that it can't find the program. I need to unpin the icon and repin a new one (the icon in the start menu works fine).
Anyone else have this problem and know how to fix it?
I'm using AIR 2.7 (compiling with the Flex 4.1 SDK) and I'm on Windows 7 64 bit if that helps.
A workaround would be to wrap your app inside another app as a module and only update that module. That way only the module SWF would be overwritten, leaving the original app intact.
Resurrecting an old question. After digging around with pretty specific questions on Google, I found 2 posts, one in the Adobe forums:
http://forums.adobe.com/message/3449244
and the other in the JIRA:
https://bugs.adobe.com/jira/browse/SDK-24649
It looks like this bug has been open for a while and isn't getting fixed any time soon.

Installed MVVMLight - doing WP7 - VS2010 works fine; Blend 4 doesn't

I can create an MVVMLight phone app in VS2010. It runs as it should. I can open it in Blend 4. That's all fine.
When I create a new WP7 MVVM project in Blend, several things are wrong:
1. Just compiling, get "A start page has not been specified...." WMAppManifest.xml has incomplete Task section. NavigationPage attrib. with MainPage.xaml is not there.
2. When I manually fix that and build, I get "Project could not be built." It references Microsoft.Phone.Controls.dll and Microsoft.Phone.Control.Navigation (no .dll--and not found, of course).
A non-MVVM Blend phone project correctly references Microsoft.Phone.dll (and Microsoft.Phone.Interop.dll). And it works fine.
Where have I gone wrong in my MVVM installation for Blend 4?
Thanks.
Unfortunately, the newest version of Blend 4 for Windows Phone 7 does not support custom template. What you see now in Blend are the old project templates.
I am aware that the install process at the moment is terrible, and I am working with members of the community to solve that issue (including cleaning up old files).
In the mean time, if you want to clean up old files, there is a list at http://www.galasoft.ch/mvvm/cleaning. Again, sorry that the process is manual at this time.
Cheers,
Laurent

Resources