Xamarin.Swift icon indicating copy to clipboard operation
Xamarin.Swift copied to clipboard

SwiftSupport tasks not running

Open rhishikesh-helpshift opened this issue 5 years ago • 3 comments

Environment : Xamarin.Swift 1.0.4 Xcode 11.2 Visual Studio 8.3

Steps taken

  1. Wrap an iOS Framework which has Swift 5 code in a binding library project
  2. Link the library project to an Example Xamarin.iOS
  3. Add the Xamarin.Swift nuget package in this example app
  4. Build

Observations I can't see any of the Targets defined by SwiftSupport (such as SwiftSupport.ScanSwiftTask) being executed when I am building the application

Can you please help me figure out what I am missing here ?

rhishikesh-helpshift avatar Dec 05 '19 07:12 rhishikesh-helpshift

I have the same issue.

I get a bunch of linker errors like

ld : warning : Could not find or use auto-linked library 'swiftFoundation'
ld : warning : Could not find or use auto-linked library 'swiftDarwin'
ld : warning : Could not find or use auto-linked library 'swiftCoreFoundation'
ld : warning : Could not find or use auto-linked library 'swiftCore'
ld : warning : Could not find or use auto-linked library 'swiftCoreGraphics'
ld : warning : Could not find or use auto-linked library 'swiftObjectiveC'
ld : warning : Could not find or use auto-linked library 'swiftDispatch'
ld : warning : Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftFoundation'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftDarwin'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftCoreFoundation'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftCore'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftCoreGraphics'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftObjectiveC'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftDispatch'
error MT5209 : Native linking error : warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'

None of the build targets defined in the .targets file run.

iTwenty avatar Dec 24 '19 07:12 iTwenty

I have built a binding for a library build with Swift 5. Made a NuGet of that library and imported it into a test project, that runs smooth so far. Seem to deploy and run just fine on device running iOS 13.3.1 on an iPhone 6s

What do you mean by "Link the library project to an Example Xamarin.iOS" @rhishikesh-helpshift Have you added it as a reference or exported it as a NuGet and added it as a package. Have you added the swift package to the binding library project as well?

Could it be some old cached files? @iTwenty what have you done? @josueyeray Is this the same problem as you have on #45

Im not a maintainer of this library and am not sure if I can help but I got bindings with swift 5 working on my end so I just wanted to post what have given me trouble.

VS4Mac 8.4.5 Xamarin.Swift: 1.0.4 Xamarin.iOS 13.10.0.17 Xcode 11.3.1

tentom avatar Feb 19 '20 11:02 tentom

@rhishikesh-helpshift Can you check your .csproj to see if the reference to the Xamarin.Swift project is in there on the final iOS app project?

Flash3001 avatar Apr 15 '20 18:04 Flash3001