Xamarin.Swift
Xamarin.Swift copied to clipboard
SwiftSupport tasks not running
Environment : Xamarin.Swift 1.0.4 Xcode 11.2 Visual Studio 8.3
Steps taken
- Wrap an iOS Framework which has Swift 5 code in a binding library project
- Link the library project to an Example Xamarin.iOS
- Add the Xamarin.Swift nuget package in this example app
- 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 ?
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.
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
@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?