Coder Social home page Coder Social logo

Comments (27)

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Hello. Maybe problem in IOS Linker. You can turn SDK Linker on Dont Link. Try it, and say me if this will help. Thank You.

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames Hey, thanks for the fast reply. If I use Dont link, it works fine. Is there a way to get it working without this option?

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Try turn SDK Linker on Link SDK assemblies only.

You add Popup.Init in AppDelegate?

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames Yes sir. Even if I run the demo from your code, without changing a single line of code, in release mode, it will fail on the device.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Crash only from Link all assemblies or Link SDK assemblies only also?

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames :

Link None = Everything works as expected.

Link SDK assemblies only = The page with the menu options opens. Click any one of them, app will crash.

Link ALL = App will crash on start up. It won't even get to the menu options.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Try add [assembly:LinkerSafe] in AssemblyInfo.cs projects Demo.iOS and Rg.Plugins.Popup.IOS.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax And add [assembly: Preserve] in PopupNavigationIOS.cs

so:

[assembly: Dependency(typeof(PopupNavigationIOS))]
[assembly: Preserve]  // or [assembly: Preserve(typeof(PopupNavigationIOS))]
namespace Rg.Plugins.Popup.IOS.Impl
{
    class PopupNavigationIOS : IPopupNavigation
    {
    ....

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Please, fork this branch and test. I add fix code in last commit. Maybe this will help.

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames thanks for looking at it so quick! will do! (unable to test until probably monday, will keep you posted!)

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax I think solved problem from SDK Linker. Please testing this branch from last commit. Problem must be fixed. Thank you!

P.S. Now you can use Link all assemblies in iOS and Android projects.

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames It is complaining that PreserveAttribute.cs is missing.

screen shot 2016-02-29 at 10 19 30 am

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax I'm sorry, i forgot remove PreserveAttribute.cs in csproject. Please Pull last commit in ios-linker

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Last commit 3a3b5a0

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax I'm sorry for my bad english. I meant, try branch ios-linker now. I push two commit, that fix PreserveAttribute error.

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

No problem. I got the latest code, you are missing using Rg.Plugins.Popup; in Assembly.cs, in the Demo project. I tried deploying it to the device in release mode, with the same linker setting - Link SDK assemblies only, but it is still crashing on the device, when trying to open any of the demo pages. Are you able to run on your own device and if you are, does it work in release mode?

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Unfortunately, i can not testing on real ios device. It's error appears only on real device or on simulator also, in mode release?

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames No problem. It will crash in the sim as well. Try using these settings:

screen shot 2016-02-29 at 10 52 41 am

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax I tested on:
Xamarin Studio 5.10.2
Mac OS 10.11.3
iPhoneSimulator iPad Retina iOS 9.2

It's all ok. Build compiled in release mode, and working on iPhoneSimulator SDK 9.2

Please, download project zip file, and testing on him. This project 100% working for me. Maybe trouble only on real device?

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax
clip2net_160229202817
clip2net_160229202606
clip2net_160229202634

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames the zip file you attached works perfectly in the simulator.. I'm not sure what is the difference with the version from the other branch?.. but still, even though it works in release, in the sim, it is still crashing on the device in release mode. Maybe someone else with a device can confirm for you?

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax I asked my friend tested on ios device 9.2. And he working.

What is your version Xamarin.IOS (MonoTouch), Xamarin Studio?

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax P.S. You tested nuget library in you project? Nuget version also have this problem?

from rg.plugins.popup.

yhax avatar yhax commented on May 9, 2024

@rotorgames I am using 9.2.1 on the device (ipad mini 2nd gen), running xamarin studio (5.10.2 build 56), on my mac which has El Capitan. Yes, I tested the nuget library and I have the same problem. If you are unable to reproduce it, I guess we can close it for now. I have implemented a different solution for now.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Ok. Thank you for issues. As soon as news, i write in this issues.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax P.S. Update Xamarin.IOS version. Maybe problem in old version Xamarin.IOS.

from rg.plugins.popup.

rotorgames avatar rotorgames commented on May 9, 2024

@yhax Hey. It took a long time and finally the error has been eliminated. If you're still using my plugin can be updated to version v0.0.15. The error should be corrected. Thank you.

from rg.plugins.popup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.