0

我正在尝试绑定 pushy.me obj-c 框架。我已经通过 Objective Sharpie 运行它并获取输出 api 定义文件和框架。

从这里我构建文件并获取输出“PushySDK.dll”并在我的 xamarin.ios 项目中引用它。但是当我尝试构建项目时,我得到一个编译错误。

ugs-mobile-app/ugs_mobile_app.iOS/MTOUCH: Error MT5209: Native linking error: framework not found PushySDK (MT5209) (UGSMobileiOS)

我一直在做一些谷歌搜索,但无法真正找到发生这种情况的确切原因。

我注意到在引用下的构建输出中,这个 dll 在这里被引用了两次。

Target _CompileToNative:
    MTouch Task
      AppBundleDir: bin/iPhone/Debug/build-iphone5.1-10.1.1/ugs_mobile_app.iOS.app
      AppExtensionReferences:
      AppManifest: bin/iPhone/Debug/build-iphone5.1-10.1.1/ugs_mobile_app.iOS.app/Info.plist
      Architectures: ARMv7
      ArchiveSymbols: <null>
      BitcodeEnabled: False
      CompiledEntitlements: obj/iPhone/Debug/build-iphone5.1-10.1.1/Entitlements.xcent
      Debug: True
      EnableGenericValueTypeSharing: True
      Entitlements: Entitlements.plist
      ExecutableName: ugs_mobile_app.iOS
      ExtraArgs: <null>
      FastDev: False
      HttpClientHandler: HttpClientHandler
      I18n: <null>
      IntermediateOutputPath: obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache
      IsAppExtension: False
      LinkerDumpDependencies: False
      LinkMode: SdkOnly
      MainAssembly: /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/bin/iPhone/Debug//ugs_mobile_app.iOS.exe
      NativeReferences: <null>
      OutputPath: bin/iPhone/Debug/build-iphone5.1-10.1.1/
      Profiling: False
      ProjectDir: /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS
      References:
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
        ../../PushyIOSBindings/bin/Debug/PushySDK.dll
        /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app/bin/Debug//ugs_mobile_app.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS//mscorlib.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/Microsoft.Win32.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/Microsoft.Win32.Registry.AccessControl.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/Microsoft.Win32.Registry.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.AppContext.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Collections.Concurrent.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Collections.NonGeneric.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Collections.Specialized.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Collections.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ComponentModel.Annotations.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ComponentModel.EventBasedAsync.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ComponentModel.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ComponentModel.TypeConverter.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ComponentModel.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Console.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Data.Common.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Data.SqlClient.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.Contracts.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.Debug.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.FileVersionInfo.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.Process.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.StackTrace.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.TextWriterTraceListener.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.Tools.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.TraceEvent.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.TraceSource.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Diagnostics.Tracing.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Drawing.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Dynamic.Runtime.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Globalization.Calendars.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Globalization.Extensions.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Globalization.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.Compression.ZipFile.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.FileSystem.AccessControl.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.FileSystem.DriveInfo.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.FileSystem.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.FileSystem.Watcher.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.FileSystem.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.IsolatedStorage.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.MemoryMappedFiles.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.Pipes.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.UnmanagedMemoryStream.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.IO.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Linq.Expressions.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Linq.Parallel.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Linq.Queryable.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Linq.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.AuthenticationManager.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Cache.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.HttpListener.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Mail.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.NameResolution.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.NetworkInformation.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Ping.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Requests.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Security.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.ServicePoint.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Sockets.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.Utilities.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.WebHeaderCollection.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.WebSockets.Client.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Net.WebSockets.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ObjectModel.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Reflection.Extensions.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Reflection.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Reflection.TypeExtensions.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Reflection.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Resources.ReaderWriter.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Resources.ResourceManager.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.CompilerServices.VisualC.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.Extensions.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.Handles.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.InteropServices.WindowsRuntime.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.InteropServices.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.Numerics.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.Serialization.Formatters.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.Serialization.Json.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.Serialization.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.Serialization.Xml.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Runtime.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.AccessControl.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Claims.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Algorithms.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Cng.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Csp.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.DeriveBytes.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Encoding.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Encryption.Aes.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Encryption.ECDiffieHellman.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Encryption.ECDsa.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Encryption.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Hashing.Algorithms.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Hashing.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.OpenSsl.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Pkcs.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.ProtectedData.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.RSA.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.RandomNumberGenerator.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.X509Certificates.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Principal.Windows.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.Principal.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Security.SecureString.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ServiceModel.Duplex.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ServiceModel.Http.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ServiceModel.NetTcp.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ServiceModel.Primitives.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ServiceModel.Security.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.ServiceProcess.ServiceController.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Text.Encoding.CodePages.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Text.Encoding.Extensions.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Text.Encoding.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Text.RegularExpressions.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.AccessControl.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.Overlapped.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.Tasks.Parallel.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.Tasks.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.Thread.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.ThreadPool.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.Timer.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Threading.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Xml.ReaderWriter.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Xml.XDocument.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Xml.XPath.XDocument.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Xml.XPath.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Xml.XmlDocument.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Xml.XmlSerializer.dll
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades/System.Xml.Xsl.Primitives.dll
        ../../PushyIOSBindings/bin/Debug/PushySDK.dll
        /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app/bin/Debug//ugs_mobile_app.dll
        /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app/bin/Debug/Newtonsoft.Json.dll
        /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app/bin/Debug/System.Net.Http.dll
        /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app/bin/Debug/System.Net.Http.Primitives.dll

这是构建日志给出的错误。

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -framework Foundation -framework CloudKit -framework QuartzCore -framework CoreGraphics -framework UIKit -framework WebKit -F /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache -framework PushySDK -weak_framework CFNetwork -Xlinker -rpath -Xlinker @executable_path/Frameworks /Library/Frameworks/Xamarin.iOS.framework/Versions/10.3.1.8/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonosgen-2.0.a /Library/Frameworks/Xamarin.iOS.framework/Versions/10.3.1.8/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.a /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/ugs_mobile_app.iOS.exe.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/Xamarin.iOS.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/mscorlib.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/System.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/PushySDK.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/registrar.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/main.armv7.o -force_load /Library/Frameworks/Xamarin.iOS.framework/Versions/10.3.1.8/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libapp.a -Wl,-pie -arch armv7 -miphoneos-version-min=8.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -lz -o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/bin/iPhone/Debug/build-iphone5.1-10.1.1/ugs_mobile_app.iOS.app/ugs_mobile_app.iOS -liconv -u _UIApplicationMain -u _xamarin_get_block_descriptor -u _xamarin_timezone_get_data -u _xamarin_log -u _mono_pmip
    Process exited with code 1, command:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -framework Foundation -framework CloudKit -framework QuartzCore -framework CoreGraphics -framework UIKit -framework WebKit -F /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache -framework PushySDK -weak_framework CFNetwork -Xlinker -rpath -Xlinker @executable_path/Frameworks /Library/Frameworks/Xamarin.iOS.framework/Versions/10.3.1.8/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonosgen-2.0.a /Library/Frameworks/Xamarin.iOS.framework/Versions/10.3.1.8/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.a /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/ugs_mobile_app.iOS.exe.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/Xamarin.iOS.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/mscorlib.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/System.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/PushySDK.dll.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/registrar.armv7.o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/obj/iPhone/Debug/build-iphone5.1-10.1.1/mtouch-cache/main.armv7.o -force_load /Library/Frameworks/Xamarin.iOS.framework/Versions/10.3.1.8/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libapp.a -Wl,-pie -arch armv7 -miphoneos-version-min=8.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -lz -o /Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/bin/iPhone/Debug/build-iphone5.1-10.1.1/ugs_mobile_app.iOS.app/ugs_mobile_app.iOS -liconv -u _UIApplicationMain -u _xamarin_get_block_descriptor -u _xamarin_timezone_get_data -u _xamarin_log -u _mono_pmip
    ld: framework not found PushySDK
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

MTOUCH: error MT5209: Native linking error: framework not found PushySDK
MTOUCH: error MT5202: Native linking failed. Please review the build log.
Task "MTouch" execution -- FAILED
Done building target "_CompileToNative" in project "/Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/UGSMobileiOS.csproj".-- FAILED

Done building project "/Users/derek/ugs-mobile-app/ugs-mobile-app/ugs_mobile_app.iOS/UGSMobileiOS.csproj".-- FAILED

我也尝试过添加绑定项目作为参考,但我遇到了同样的问题。我完全不清楚导致此错误的原因,感谢您提供任何帮助。谢谢

编辑:我已将这些标志添加到“其他 mtouch 参数”中

-gcc_flags "-L${ProjectDir} -lPushySDK -force_load ${ProjectDir}/../../PushyIOSBindings/Binding/PushySDK.framework/PushySDK.a"
4

1 回答 1

1

这里的问题是我使用的是 swift 框架,需要包含 swift 库和包。需要将 nuget 包添加到项目中,并且所有 swift 库的库文件需要手动添加到项目根目录的“框架”文件夹中。

于 2017-02-17T22:34:13.217 回答