Closed roncialdinho closed 6 years ago
Can you attach these files:
/Users/c308829/Documents/Lavoro/UniPoint/UC.UniPoint/UC.UniPoint.Forms/UC.UniPoint.Forms.iOS/obj/iPhone/Release/mtouch-cache/registrar.h
/Users/c308829/Documents/Lavoro/UniPoint/UC.UniPoint/UC.UniPoint.Forms/UC.UniPoint.Forms.iOS/obj/iPhone/Release/mtouch-cache/registrar.m
Hi @rolfbjarne, thanks for your support. Yes, as requested you can find the 2 files attached.
OK, it seems there's something wrong in a binding library you're using (something's bound incorrectly).
Would it be possible for you to zip up the directory /Users/c308829/Documents/Lavoro/UniPoint/UC.UniPoint/UC.UniPoint.Forms/UC.UniPoint.Forms.iOS/obj/iPhone/Release/mtouch-cache
and attach it here? Then I could pinpoint exactly what's wrong. This directory does not contain source code, only assemblies and other build artefacts.
If that's not possible, I'd need to have a look at the assembly that contains the pdftron.PDF.Tools.ToolManagerDelegate
and pdftronprivate.ToolManagerDelegate
types (the managed names can be somewhat different).
I hope that this link is valid for you:
Thanks, I can reproduce the error with that zip file.
I'll have a look and get back to you (next week, since I'm traveling now)
This is a problem in the PDFNetiOS.dll
library.
The problem is an invalid [AdoptsAttribute]
, it specifies that it adopts a protocol with a dot, which is not allowed in Objective-C (thus the generated registrar code won't compile):
[Adopts ("pdftronprivate.PDFViewCtrlDelegate")]
public class PDFViewCtrlDelegate : PTPDFViewCtrlDelegate
It also seems you're using an old version of that library, by updating to the latest NuGet (v6.8.2) the code is different, and it seems to work fine in a simple test:
[Model, Protocol, Register ("PTPDFViewCtrlDelegate", false)]
public class PTPDFViewCtrlDelegate : NSObject, IPTPDFViewCtrlDelegate, INativeObject, IDisposable
So I'm closing this. Feel free to reopen if you still have the issue after updating the PDFNetiOS.dll
library.
Steps to Reproduce
Expected Behavior
iOS app runned on device
Actual Behavior
application error
Environment
=== Visual Studio Enterprise 2017 for Mac ===
Version 7.5 (build 1254) Installation UUID: 09229275-8f83-4013-9c0f-dcec9ea48a43 Runtime: Mono 5.10.1.47 (2017-12/8eb8f7d5e74) (64-bit) GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 4.4.0.36 (master / 0c7c49a6)
=== NuGet ===
Version: 4.3.1.4445
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet Runtime Version: 2.0.5 SDK: /usr/local/share/dotnet/sdk/2.1.4/Sdks SDK Version: 2.1.4 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.6.2 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Apple Developer Tools ===
Xcode 9.3.1 (14154.1) Build 9E501
=== Xamarin.Mac ===
Version: 4.4.1.176 (Visual Studio Enterprise)
=== Xamarin.iOS ===
Version: 11.10.1.177 (Visual Studio Enterprise) Hash: 7e782c1e Branch: d15-7 Build date: 2018-04-25 15:27:13-0400
=== Xamarin.Android ===
Version: 8.3.0.19 (Visual Studio Enterprise) Android SDK: /Users/c308829/Library/Android/sdk Supported Android versions: 2.3 (API level 10) 4.2 (API level 17) 4.4 (API level 19) 7.0 (API level 24) 7.1 (API level 25) 8.0 (API level 26) 8.1 (API level 27)
SDK Tools Version: 26.1.1 SDK Platform Tools Version: 27.0.1 SDK Build Tools Version: 27.0.3
Java SDK: /usr java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin Inspector ===
Version: 1.4.0 Hash: b3f92f9 Branch: master Build date: Fri, 19 Jan 2018 22:00:34 GMT Client compatibility: 1
=== Build Information ===
Release ID: 705001254 Git revision: 498923ea36d2c7fe440c4e4b8cfb75bd50bbd748 Build date: 2018-05-05 10:35:24-04 Xamarin addins: 219f1c4943b4693b837b4173dd10ea982a47c852 Build lane: monodevelop-lion-d15-7
=== Operating System ===
Mac OS X 10.13.4 Darwin 17.5.0 Darwin Kernel Version 17.5.0 Fri Apr 13 19:32:32 PDT 2018 root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64
Build Logs