Comments (6)
Hey @JFDionne .
That happens when the library you are using was not compiled using the latest Xcode version.
When you add the SwiftSupport library it is just adding the Swift runtime to your app. So when you have a library that was built against Swift 4.0 or Swift 2.0 it shouldn't work on a 4.1.2 runtime. That kind of stuff breaks even on point releases.
If you have access to Polyline.framework source code, just open it on Xcode and recompile and redo the binding. If it is not the case then you have to ask the library maintainer to do it. Otherwise, the solution is to downgrade Xcode and SwiftSupport to the previous version you were using.
All 3 needs to upgrade together: Library Swift version = SwiftSupport version = Xcode on the build server version.
Before updating you had the library and SwiftSupport on the same version, but Xcode was newer. So the package_ipa Script would cause your app to have one version of the Swift runtime on the MyApp.api/SwiftSupport folder and another version in MyApp.api/Payload/MyApp.app/Frameworks folder.
After the update the 2 matches, but not the library itself.
from xamarin.swift.
Oh, I see thank.
Any chance you know which version of xcode can work with the "old" version?
from xamarin.swift.
Sure. You can check that on the Release Notes for each Nuget package.
https://www.nuget.org/packages/Xamarin.Swift4.Core/4.2.1.1
On this link you can find the History Version. On it the first 3 number match the exact Swift version it was built for and the Release notes says which is the version of Xcode you want.
Let's say you pick https://www.nuget.org/packages/Xamarin.Swift4.Core/4.1.2
4.1.2 = Xcode 9.4
https://www.nuget.org/packages/Xamarin.Swift4.Core/4.2.0
4.2.0 = Xcode 10
4.2.1.1 = Xcode 10.1
from xamarin.swift.
Thanks !
from xamarin.swift.
xcode 10.2 already released (and referenced issue were solved by installing of 10.1).
Can we expect release of Xamarin.Swift4 4.2.1.2 ?
from xamarin.swift.
@andrew-nemtsev Xcode 10.2 brings support for Swift 5.
The current release strategy for this project up to this point was for each major Swift release I would wrap each individual dylib into a Nuget package and release it + 1 MSBuild script. (total of 43 packages for Swift 4) and for each Xcode/Swift update a new minor version for the 42 packages. It was working so far, but Swift 5 brought some changes and I wanted to change how the MSBuild script works. The new package will be:
- a single Nuget package (no need to download a bunch of heavy packages)
- works for iOS with experimental support for macOS and tvOS
- any version of Xcode/Swift should work with the same script (the script will check if your Xcode version is compatible with your libraries) so this project doesn't need to be updated when a new Xcode is released (libraries built before Swift 5 will have to).
- it will remove architectures from the Swift dylibs your app doesn't need.
- it will include the SwiftSupport folder on the IPA during the normal build, no need to run the package_ipa.sh script.
- if the library is built using Swift 5 and your app has a minimum target of iOS 12.2 then no Swift runtime library is included as iOS 12.2 already comes with it.
All the code is already in place, but I need to do more testing before pushing it to Nuget (you can check it here https://github.com/Flash3001/Xamarin.SwiftSupport/tree/master/SwiftSupport)
from xamarin.swift.
Related Issues (20)
- I Have done the swift framework binding as you explained in medium . I build binding library succesfully and give reference to my app .But when i call framework method from my app, app suddenly crash and stop.My swift framework is written in version swift v5.0.1. I added nuget xamarin.swift which is mentioed as for swift v5. But it is also not helping me from crashing. Can you guid me on this issue. HOT 7
- msbuild command line build does not add SwiftSupport folder HOT 5
- Not being able to deploy/debug on iOS versions prior to 12.2 HOT 8
- ITMS-90428: Invalid Swift Support - Payload - The files libswiftCoreGraphics.dylib, libswiftDarwin.dylib, libswiftos.dylib, libswiftQuartzCore.dylib, libswiftFoundation.dylib, libswiftMetal.dylib, libswiftCoreLocation.dylib, libswiftCoreFoundation.dylib, libswiftCoreImage.dylib, libswiftObjectiveC.dylib, libswiftUIKit.dylib, libswiftDispatch.dylib, libswiftCore.dylib donβt match with the /Payload/MyApp.app/Frameworks/ HOT 6
- ipa-packager and sh file for Swift 5.0
- Paths to swift dylibs are different in XCode 11 HOT 5
- Invalid Swift Support: `incorrect code signature` or `SwiftSupport folder is missing` HOT 3
- SwiftSupport tasks not running HOT 3
- Build targets not running. HOT 3
- TestFlight build fails at startup with `Termination Description: DYLD, dependent dylib '@rpath/libswiftCore.dylib' not found for....` HOT 2
- ITMS-90428: Invalid Swift Support -
- Xamarin.Mac support
- MSB4044: The "CheckSwiftVersionsTask" task was not given a value for the required parameter "SdkVersion" HOT 16
- Error MSB4044: The "CheckSwiftVersionsTask" task was not given a value for the required parameter "AppManifest". (MSB4044) HOT 9
- swift support broken HOT 5
- symbol '_OBJC_CLASS_$_SwiftObject' not found HOT 1
- No support for RealityKit - Between Swift and Xamarin
- Build is failed with iOS and VS2022 / Error MSB4057: The target "_CollectFrameworks" does not exist in the project HOT 6
- The "Codesign" task was not given a value for the required parameter "StampFile", nor was there a "CodesignStampFile" metadata on the resource /path/*.dylib HOT 2
- error MSB4044: The "CompileEntitlements" task was not given a value for the required parameter "AppBundleDir" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin.swift.