Reputation: 841
I am trying to create a Xamarin Forms project that is full of custom renderers. The intention is to use the DLLs created in other projects too.
When I build the project, I get projectname.dll & projectName.Droid.dll in android but I only get projectName.dll in iOS There is no projectName.iOS.dll
The build mode is debug, on simulator. What's missing?
Thanks
Upvotes: 0
Views: 652
Reputation: 621
Perhaps someone else out there might need a solution to this as well, I also needed to implement this into a project, and it turned out that no .dll file is being generated for iOS project rather a .exe file is generated which can be imported as .NET Assembly into another Xamarin iOS project's reference just like you'd do for a dll file.
I hope this helps
Upvotes: 0
Reputation: 841
To solve that FileIOException (dll not found issue updated in comments above) All I had to do was to create some blank Init methods in custom renderers & call them in my sample app's AppDelegate & MainActivity just after Forms.Init & before ApplicationLoad. That did the trick.
Upvotes: 1
Reputation: 12595
You should create an iOS library project manually, add the xamarin Forms Nuget and your custom renderers to it.
By default creating a xamarin forms project only creates a pcl, and 2 application projects (iOS and android).
Upvotes: 1