xamarin.ios app in xamarin form not building - xamarin

I am not able to build xamarin.ios project in xamarin form app. Getting error
MessagingRemoteException: An error occured on client Build42164 while
executing a reply for topic
xvs/Build/4.2.1.64/execute-task/MyManager.iOS/188a903%2FACTool
DirectoryNotFoundException: Could not find a part of the path
"/Users/ascensive/Library/Caches/Xamarin/mtbs/builds/MyManager.iOS/188a90393f778024e225bc6886195c37/Assets.xcassets/AppIcon.appiconset/Contents.json.
Its searching Assets.xcassets folder, which is not found. Please help me. Thanks in advance.

you have to right click on the Asset Catalogs > Add Asset Catalog. It will generate the Asset. Remember to turn on "Show All Files" in the Solution Explorer, sometimes it's created but you have to include in the project. By doing this, the contents.json is automatically created.

Related

Issue with interacting with iPad accessory via Binding - Xamarin.iOS

I have a Barcode scanner accessory to which the iPad docks on to, hence i need to interface with the accessory to scan for barcode and use it in my application. To accomplish this, i followed the steps as enlisted here
Xamarin Hep - Link
So I went on to create a "Binding" project, added the native library i.e. ".a" file , created the APIDefinition and Structs using Sharpie and finally added the Binding project reference to my application.
In the next step, when I tried to deploy the app to iPad, encountered the error with regards to Native Linking.
In order to fix this, i mentioned the "Framework" in the LinkWith file like:
[assembly: LinkWith ("libBarCodeScannerSDK.a", SmartLink = true, ForceLoad = false, Frameworks="ExternalAccessory")]
Having done all the things stated above, I was able to deploy the app.But I am unable to make my application work with the Barcode scanner accessory. When I check the status of the scanner, its always returned as "NotConnected".
I am clueless as to how to go about debugging this issue and getting it resolved. Do appreciate, if someone can give me pointers on this.
Thanks,
Sid
most (if not all) of external accessories must set UISupportedExternalAccessoryProtocols key inside the info.plist file, see the info.plist file that the native Xcode example that came with your scanner SDK has and copy the UISupportedExternalAccessoryProtocols section to your Xamarin's app info.plist file.
Hope this helps!

App designer not working for existing titanium apps - XML parse error

I tried to use app designer with an existing app to see if it could render the views properly. However, when I open an existing view in app designer mode it shows the error
XML Parsing Error
Line : 1
Premature end of file.
I've tried this with a brand new project and it seems to work fine without error. I am also using the latest SDK with my old project (5.4.0).
Another thing I wanted to try was using the "Movies" demo app with the app designer and it didn't have an error but it did show a blank page and only when you turned on "Show Anchors" from the toolbar did it show some outlines of controls but they were not in the correct places.
Hopefully someone has some ideas but it seems to me this only works with brand new projects for some reason.
I've looked in the studio log files too and there's no entry for app designer when I use it and see this error message.
Thanks in advance for any help!

Xcode 6.4 CFBundleIconFiles

When I try to submit my app to the app store i get this error: "error itms-90032 invalid image path no image found at the path referenced under key CFBundleIconFiles"
The problem is that I ma not even using CFBundleIconFiles. A search of the entire app shows that it is not present. I just can't figure this out. Any help would be appreciated.
They are in AppIcon in Images.xcassets
Okay, but it sounds like you forgot to tell the app target about that. Edit the app target, go to the General tab, and make sure that the target knows where to find the icons:
You won't necessarily see CFBundleIconFiles in the plist that Xcode created for your project, but CFBundleIconFiles does get added to the Info.plist that is submitted to the App Store.
Your bundle icon files are automatically generated from your Asset Catalog icons and added to the bundle.
The details for the icons are contained in Images.xcassets.
Check to make sure that the Asset Catalog was not relocated, or the validation will fail, since the icons could not be generated.
I double checked everything you guys posted and everything is good, but still getting the error. I finally just decided to add iconfiles (ios5) to the plist and it worked when I tried to upload. I don't know why that did the trick.

Events are disabled in codenameone

I have problem when I want to access events. I already copied the resource files (nativej2me.res) under src directory but still the events are disabled within my project.
Can anyone help me how to arrange the resources so it enables the vents..?
Thanks
Don't move that resource file. Its not the place for it.
I'm guessing you created a handcoded application where GUI builder events aren't supported. You need to create a GUI builder project when creating a new project.
That's a GUI builder project (notice the visual not manual in the brackets)
Just for the googlers out there:
Have a look in the file codenameone_settings.properties - in there you'll find the property userClassAbs=something/StateMachine.java
Its an absolute path and it was showing the wrong directory. After fixing this I was able to add Events in the Designer again.

Can't change the header of Hub control in Windows Universal app

I'm having problem with changing header of the Hub Control in Windows Universal app. I'm attaching screenshots so you would be able to see how it looks like.
As you can see at screenshot I changed header text to "Test Header" in XAML and I can see all changes in VS Designer. Problem is when I compile the app and deploy it on device or emulator because than header still contains default text "application name"...
What am I doing wrong?? I tried to creat new project, I was searching for "application name" string or some binding in my project but with no luck... :( Please help guys because I'm struggling with this for a few days now and I have no idea what to do.
Thanks in advance! Regards!
Remove the x:Uid="Hub" from the Hub control.
<Hub x:Name="Hub" Header="Test Header"/>
That way it won't redirect all your strings to the Strings\en-US\Resources.resw file (it is part of the shared project)
If you want to keep it in, then just edit that file and rename the key to anything you like.

Resources