NativeScript V8 BottomNavigation error: "Root should be either UIViewController or UIView" - nativescript

I'm reading through the official document for NativeScript, and come across this playground example code related to "BottomNavigation".
https://play.nativescript.org/?template=play-ng&id=U4Rmr9&v=2
I tried to replicate the code using:
tns version "8.0.2"
angular cli version "12.0.5"
And I this error when running "tns run ios", stating that "Root should be either UIViewController or UIView".
I tried google for solutions, come across solution like this:
"Error: Root should be either UIViewController or UIView" Nativescript
I tried wrapping the entire "BottomNavigation" or just the "page-router-outlet", but still get weird results.
Can anybody help me with this?
I've created a git repo to simulate the issue:
https://github.com/HidePoSy/TestNativeScriptBottomNavigation.git
All that's need to run it is run "tns run ios".
Thanks.

Related

iOs App rejected by Apple - not getting the packages that uses UIWebview while using 'grep -r UIWebView'

I am writing the full story, main issue is mentioned in the end.
Mail from Apple:
Link I have followed to fix this issue:Doc used to fix the issue
ios build page:
Visual studi version:
Xamarin iOs versions:
xamarin.forms version:4.6.0.1180
Webview Integration:
I am using 'webview' in my Xamarin.forms project which is common for android and ios.
I have done a search by using the keyword: 'UIWebview', but I couldn't find any such usage in my project.
And then I have added --warn-on-type-ref=UIKit.UIWebView in mtouch argument.
Warning log received in the build:
And then I was trying with grep -r UIWebView.
I am not sure whether this is the right way to write the command in terminal. Help me if I am doing wrong. _/_
I am waiting for a long time.Why it's showing recursive search of stdin??How can I find out the packages which is using UIWebview in xamarin?
Can anyone help me to jump out of this issue .
What may be the mistake I have done here ??????
Thnx in advance :)
I have fixed the issue. There is a change in the way which I have tried 'grep -r UIWebView'
So for all the devprs who all are facing the same issue. I am posting the way in which I solved my issue.
Delete bin and obj folders
Assuming your project path is User/documents/xamarin/myproject
Then add
cd documents
cd xamarin
then write
grep -lr "UIWebView"
and then return(mac)
You will receive an output that contains all the libraries that using UIWebview.
Main issue will be the Hockeyapp sdk.You should replace it with app center. Delete or update the other libraries which are having UIWebview reference.
And if you are getting sqlite3, just ignore it.
Create archive file. Upload to app store.
:)

Error adding icons font ionic 3

i am noob with Ionic and i am having problems adding a new font of icons in my project.
I am using ionic 3.20.0. I am trying to add this font (http://icofont.com/) and i am use this tutorial for this.
https://yannbraga.com/2017/06/28/how-to-use-custom-icons-on-ionic-3/
(I downloaded this project but dont run, i think that the code is old version, but i am not sure)
I made the tutorial step by step but , when i try to run my app i see this error:
enter image description here
I read a lot of tutorials and try a lot of ways, but i dont know how import the scss file with the fonts.
Thanks for the help!! ( And sorry for my english...)
Finally, the error was that i had a extra dot in the name of my file. I check this and all runs ok with the steps indactes in the tutorial and the coments of this.
Thanks.

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!

Error in parsing StoryBoard in Xamarin.iOS

I am developing an application in Xamarin.iOS. But after three days of work, Xamarin cannot render the Main.StoryBoard and gives the following error:
There was an error in Parsing the XML in this document
and a long list of logs.
Any idea how to revert to or something like this
#Xhulio ran into this before. Try opening it with Xcode first to see if it works. If not you can try opening the storyboard with an XML editor (I used Notepadd++ with an XML plugin), then identify and correct the invalid XML. If you are using source control you can try comparing your changes to identify the issue. Hope this helps.

A page-turning interface for iOS apps in Leaves Github Project xCode

I'm trying to implement leaves project link is below:
https://github.com/brow/leaves
but there are serverl errors I couldn't find out the issues that why there are so many errors
So would anyone please help me how can i solve this problem
I don't know where I'm doing mistake, I download the zip file and then extract it and run the project that's it.
I'm attaching the screenshot of the errors as well.
You can see the errors in the screenshot.
Import QuarzCore and CoreGraphics frameworks to your project.
Add this your .h file of the class that causes the errors:
#import <QuartzCore/QuartzCore.h>

Resources