Tags down


Xamarin.iOS binding for a swift library

By : Sumon
Date : October 17 2020, 06:10 AM
I wish this helpful for you This might not be the direct answer to your question but can definitely take you in the right direction, here is the Office UI Fabric Xamarin.iOS Swift binding project that you can use as reference, it does not use (need) the Xamarin.Swift but uses a msbuild script that uses swift-stdlib-tool which is the tool that Xcode uses to determine what swift libraries need to be bundled with your application. The script [1] needs to be added to your final app .csproj as shown here.
In your particular case it seems that you are missing MobiiiSDK.framework from your bundle.
code :
    <_TargetPlatform Condition=" '$(Platform)' == 'iPhoneSimulator' ">iphonesimulator</_TargetPlatform>
    <_TargetPlatform Condition=" '$(Platform)' == 'iPhone' ">iphoneos</_TargetPlatform>
    <_SwiftySwiftRemoteMirror Condition=" '$(Configuration)' != 'Debug' "></_SwiftySwiftRemoteMirror>
    <_SwiftySwiftRemoteMirror Condition=" '$(Configuration)' == 'Debug' ">--resource-library libswiftRemoteMirror.dylib</_SwiftySwiftRemoteMirror>
  <Target Name="_SwiftySwiftMasterTarget" Condition="'$(_SwiftySwiftMasterDependsOnTargets)'!=''" AfterTargets="$(_SwiftySwiftMasterAfterTargets)" DependsOnTargets="$(_SwiftySwiftMasterDependsOnTargets);_DetectSigningIdentity" />
  <Target Name="_SwiftySwiftCopySwiftDependencies" Condition="!Exists('$(_AppBundlePath)Frameworks/libswiftCore.dylib')">
    <Message Text="Copying Swift Frameworks dependencies for $(_NativeExecutable) to the $(_AppBundlePath)Frameworks folder." />
    <Exec Condition="'$(_CodeSigningKey)' != ''" SessionId="$(BuildSessionId)" Command="$(_SdkRoot)$(_XcodeToolChainRelativeToSdkRoot)usr/bin/swift-stdlib-tool --copy --verbose --sign '$(_CodeSigningKey)' --scan-executable '$(_NativeExecutable)' --scan-folder '$(_AppBundlePath)Frameworks/' --scan-folder '$(_AppBundlePath)PlugIns/' --platform '$(_TargetPlatform)' --toolchain '$(_SdkRoot)$(_XcodeToolChainRelativeToSdkRoot)' --destination '$(_AppBundlePath)Frameworks/' $(_SwiftySwiftRemoteMirror) --unsigned-destination '$(DeviceSpecificIntermediateOutputPath)/SwiftSupport' --strip-bitcode --strip-bitcode-tool '$(_SdkRoot)$(_XcodeToolChainRelativeToSdkRoot)usr/bin/bitcode_strip' --emit-dependency-info '$(DeviceSpecificIntermediateOutputPath)/SwiftStdLibToolInputDependencies.dep'" />
    <Exec Condition="'$(_CodeSigningKey)' == ''" SessionId="$(BuildSessionId)" Command="$(_SdkRoot)$(_XcodeToolChainRelativeToSdkRoot)usr/bin/swift-stdlib-tool --copy --verbose                             --scan-executable '$(_NativeExecutable)' --scan-folder '$(_AppBundlePath)Frameworks/' --scan-folder '$(_AppBundlePath)PlugIns/' --platform '$(_TargetPlatform)' --toolchain '$(_SdkRoot)$(_XcodeToolChainRelativeToSdkRoot)' --destination '$(_AppBundlePath)Frameworks/' $(_SwiftySwiftRemoteMirror) --unsigned-destination '$(DeviceSpecificIntermediateOutputPath)/SwiftSupport' --strip-bitcode --strip-bitcode-tool '$(_SdkRoot)$(_XcodeToolChainRelativeToSdkRoot)usr/bin/bitcode_strip' --emit-dependency-info '$(DeviceSpecificIntermediateOutputPath)/SwiftStdLibToolInputDependencies.dep'" />
  <Target Name="_SwiftySwiftCopySwiftSupport" Condition="'$(ArchiveOnBuild)'=='true'" AfterTargets="Archive">
    <Message Text="Copying SwiftSupport folder from $(DeviceSpecificIntermediateOutputPath)/SwiftSupport to $(ArchiveDir)/SwiftSupport folder." />
        Condition="'$(IsMacEnabled)' == 'true'"
        Destination="$(ArchiveDir)/SwiftSupport" />

Share : facebook icon twitter icon

Binding Native iOS Library with xamarin

By : Илья Зацепилов
Date : March 29 2020, 07:55 AM
I wish this helpful for you I am able to create a proper dll for .a library , Finally figured out the error!!
code :
    [assembly: LinkWith (..., LinkerFlags = "-lstdc++ -lz" )]
    -cxx -gcc_flags "-stdlib=libstdc++ -L${ProjectDir} -lMylibrary -force_load ${ProjectDir}/libMylibrary.a”

Xamarin iOS Binding Library View Controller Button Click Crashes Xamarin form App

By : Nameless
Date : March 29 2020, 07:55 AM
may help you . The issue is due to Xamarin Forms App does not defines UIWindows in AppDelegate file so this issue can be resolved by adding following function in your AppDelegate File.
code :
public override UIWindow Window {
 get { 
return UIApplication.SharedApplication.KeyWindow; 

Xamarin JAR Binding Library

By : Olivier Vallée
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I solved this by editing code of Metadata.xml inside folder Transforms.
Just add 2 lines of code. After this, clean and build your solutions:
code :
<attr path="/api/package[@name='com.tencent.mm.sdk.modelbase']/class[@name='BaseResp']/field[@name='errCode']" name="managedName">errCode</attr>
<attr path="/api/package[@name='com.tencent.mm.sdk.modelmsg']/class[@name='WXMediaMessage']/field[@name='mediaObject']" name="managedName">mediaObject</attr>

Binding brother printer SDK framework to xamarin ios binding library

By : riderz
Date : March 29 2020, 07:55 AM
I hope this helps . @jgoldberger
For anyone who might be coming across same set of issues, Please go through the link https://forums.xamarin.com/discussion/comment/340581

xamarin binding objective c library

By : Momo Mana
Date : March 29 2020, 07:55 AM
Hope this helps Can't write it for you, but the sample below is the general pattern which you can learn more about in the guide linked below. One of your key challenges is going to be making sure the callback on the delegate fires. To Map this, check out the "Binding Protocols" section.
Related Posts Related Posts :
  • How to get Push-Notification on iOS working with Firebase and Flutter?
  • How to send long data (255 Bytes in one packet ) in ios using BLE
  • Cannot install React subspec in CocoaPods
  • Code signing .framework failed , included framework manually
  • Swift UserDefaults optional Int
  • What is the difference between depth and arrayLength in MTLTexture of iOS Metal
  • MFA for MAC Logon (Second factor authentication)
  • How to minimise(Memory leak) the app memory in ARKit Scene Click on back button?
  • Getting an image imbedded in an NSAttributedString (via NSTextAttachment) to be treated as a single character, so that i
  • How to create UIButton Pulse animation using Swift?
  • using swift can we airplay photos on Apple TV programmatically?
  • Where to find the shared secret for iOS App Store receipt validation?
  • AVRoutePickerView Won't Change Color when Airplay is Active
  • What sections of Apple Health app are available via the x-apple-health:// URL scheme?
  • Flutter error on pod install: CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"
  • RegEx for matching specific URLs with lowercase and dashes
  • How to build and use C library in iOS project?
  • UICollectionView cell spacing for both portrait and landscape
  • How to capture cell data from UITableView with multiple cell prototypes?
  • Swift run multiple block of codes asynchronously in background thread in order
  • how do I trigger the click event on AVRoutePickerView using swift
  • Animate UIImageView start from rounded topRight corner and end with Rectangle
  • Converting JSON String to Dictionary<String, Any> serializes Boolean as Int
  • How to keep tableFooterView always on bottom of UITableView
  • Why not getting response from one URL?
  • Why might my iOS app be stuck on splash screen for Apple reviewers but not for me?
  • Installing .ipa over the air does not open
  • How to Add Business Logic in CollectionView?
  • is there a shortcut to know, when I'm running my app, which view controller am I in?
  • error: Unable to load contents of file list: '/Target Support Files/Pods-xx/Pods-xx-frameworks-Debug-input-files.xcfilel
  • Encode and Decode a Class in ios
  • How to get device token using firebase?
  • Removing duplicate objects from fetch based on object parameter UPDATED Swift
  • Class variable assignment is not working inside a Alamofire request block
  • Is it possible to do Augmented Faces on iOS with ARCore?
  • How to differentiate between event saved through my app and event saved by using calendar app using EventKit?
  • Pushing Firebase events To a Table View
  • What happens to local files on iOS when the app is updated?
  • How to make a variable accessible from a different swift file?
  • I want to generate QR Code encrypted in such a way that it is only read by own QRScanner app
  • Update Phone Number in Firebase Authentication - Swift
  • Convert bits per second (bps) to a human readable size format
  • How to not invalidate observer when binding is disposed in RxSwift?
  • What happen if I return false in didFinishLaunchingWithOptions?
  • How to detect hand palm and its orientation (like facing outwards)?
  • New OutputDeviceUID is nil msg when instantiating MPVolumeView
  • How to add sound feedback like pickerview in collectionview?
  • Cannot assign value of type '[String]' to type 'String?'
  • How do I make an iOS app support iPhone 6, without supporting iPhone 5S?
  • iOS app -- no cellular access to our domain on some devices
  • How to show image from url in ios swift
  • Importing image from photo library into an app in xcode
  • Delegate won't work using three view controllers
  • Why can such code be compiled? Call popToRootViewControllerAnimated in iOS UIViewController?
  • Open native UIViewController in Flutter
  • How to place 3D object (.scn file) on detected vertical plane which should be parallel to plane in ARKIt?
  • Delegate data from one UIViewController to another one
  • WARNING: The advertisement key 'Service Data' is not allowed
  • How do I check if a particular app is installed on the user's device on iOS?
  • How to check if user has paid for an Auto Renewal Subscription In App Purchase in Swift
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk