I Created a dynamic framework on Swift 3.2 & Xcode 9.0 and use it in my projects worked fine,
today, I update to Xcode 9.2 & Swift 4.0 so compiled framework on Swift 4.0 and export myFramework.framework so added by embedded Binaries it in project.
This is a strange problem when add new framework with Swift 4.0 not resolve any Framework Classes and get error:
Use of unresolved identifier 'MyClassName'
I tired more solution but no solved my problem.
Note: All of Classes Framework have open access.
Where my Framework Problem?
Is there an easy way to update framework swift version?
The Issue was that I build framework via Generic iOS Device If it should compiled on iOS Simulators like iPhone SE or iPhone 8.
I build framework on one of iOS Simulator Device and import in project.
Related
I have developed a swift iOS app that uses frameworks Moya and Alamofire.
In preparation for iOS 13, I've downloaded Xcode 11 with Swift 5.1 and when I loaded my projects, Moya framework reported error “Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compile”.
I’ve tried to troubleshoot using this solution Module compiled with Swift 4.0 cannot be imported in Swift 4.0.1 however, that didn't help so I installed pre-release versions of the frameworks.
However, the app can't be run on iOS 12 now because the pre-release version of Moya (maybe its Alamofire which Moya is dependent on) uses Apple's Combine framework.
Is there any other solution to this or will I have to satisfy myself with this app running only on iOS 13?
Use "clean" + "remove derived data"; select proper "command line tools" in the preferences. Rebuild again
I have a swift framework and I use on objective c project. I create a fat framework with script. It works till Xcode 10.2.
I try to create fat framework on Xcode 10.2. It compiled successful but when I added on my objective-c project it not working on simulator.
Apple's release notes include my error but I didn't work. (https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_release_notes in known issues)
How can I create fat framework headers file for simulator?
Try this one
https://gist.github.com/closerminds/8a8d8db6f87d2a65c4487f396f986737
This use the workaround proposed by Apple
I have create a simple reusable framwork and run that on XCode 9.4.1 and and seprate the .framwork file
When I am using this framwork with XCode 10.1 there is an error coming like
Module compiled with Swift 4.1.2 cannot be imported by the Swift 4.2.1 compiler: /Users/apple/Desktop/projectName/demo.framework/Modules/Demo.swiftmodule/arm64.swiftmodule
Is there any way to use that previous framwork in my latest code, or any other suggestion.
Should I need to compile that framwork on latest XCode 10.1, If yes, does this work on XCode 9.4.1 or lower version.
I'm using Swift 2.3 on Xcode 7.3.1 and when in AppDelegate I'm trying to import
import UserNotifications
it gives me the error that "No such module UserNotifications". What is the problem and how can I fix that?
I've tried to run it on Xcode 8 with defined SWIFT_VERSION = 2.3, but I get a lot of errors in Alamofire framework, but I set inside of Alamofire swift version, too. So I decided to continue working on Xcode 7.
So, is it because of Xcode versions or I can fix that on Xcode 7, too? My target iOS is 10. I copied inside of supported platforms 10.2 folder, so I can run on iOS 10 device from Xcode 7
You can't simply mix swift2.3 and swift3 in a single project within single target and this is also not a recommended approach.
The error which you are getting is due to UserNotifications framework. This framework has been added in xcode8 so you can't use this framework in xcode7.3.1 .
Also if you are planning to use swift2.3 in Xcode 8 then you have to use Legacy Swift Version if you made it yes then you will be able to run your project which is in swift2.3, but you will be not able to use syntax of swift3.
TO open swift 2.3 project in xcode 8, you have to on legacy form build setting for target and alamofire both.
i have the latest XCode 4.5.2 with all the iOS6 framework installed.
But i want to create projects available for iOS 5, 5.1 and 6.
I have added MapKit Framework but i can only choose iOS 6 frameworks.
Is there a place to download old frameworks to make application available to everyone ?
or may this iOS 6 Framework works on 5.0 projects ?
Thanks
Change your deployment target to 5.0. Make sure to weak reference the Frameworks that are relevant only for iOS 6.0, if there are any.
Go to cocoapods.org it's a script that will download and install external frameworks to your project. You can even set the version of iOS you are using.