I want to change the version of the framework.[swift4/xcode9] - swift

Currently I am migrating applications created with xcode 8 / swift 3 to xcode 9 / swift 4.
When I build and test on the actual machine without coding error.
It will fall in the middle of launching the application.
The real machine is iPhone 7's iOS 10.1.
■Error_message:
■Consideration:
In xcode I set it to find a library for iOS 11, but I think that there is no library for iOS 11 in iPhone 7.
I think that updating iPhone 7 from iOS 10.1 to iOS 11 will start the application without problems.
However, since I want users to enjoy the application from iOS 10.1 to iOS 11, I would like to use a library for iOS 10.1 instead of a library for iOS 11.
When converting from swift 3 to swift 4 automatically, (I do not know the timing)
I think that xcode has been set to automatically search for iOS 11 libraries.
■Questions:
How should I use the library for iOS 10.1?
Or, for example.
Can I allow iOS 11 users to apply libraries for iOS 11 and iOS 10 users to apply iOS 10 libraries?
■Supplementary information.
xcode9/swift4
iPhone7/iOS10.1
DeploymentTarget:10.1
I changed the setting from "On" to "Default"
because the following error was displayed when I moved swift 4.
error_massage:
The use of Swift 3 #objc inference in Swift 4 mode is deprecated.

Sorry, the application launched when I performed "clean".

Related

ContactsUI.Framework Crash on IOS 8

There are two new frameworks for fetching Contacts from ContactsBook in Xcode 7 sdk.
i.e Contacts.framework & ContactsUI.framework
I have added these frameworks in my app. For IOS 9 it is working fine.
But when i try to run my app in iPhone 5 with IOS 8 then the app is crashing on start.
The error is :-
dyld: Library not loaded: /System/Library/Frameworks/ContactsUI.framework/ContactsUI
I can understand that the framework or library is not available in IOS 8 but how about backward compatibility?
How will i be able to use my app in IOS 8?
You can not give the backward compatibility because the ContactsUI is not available before the version iOS 9
Its only available after the iOS 9
Check the apple documentation:
Available in iOS 9.0 and later
make sure the framework that's not available on iOS 8 is set as Optional

Supporting iOS 5 and iOS 6 in Xcode 5

I am going to develop an iOS universal application. I want to target iOS 5,6 and 7.
I am using xCode 5 for my development. I want to know is it possible to support iOS 5,6 and iOS 7 in same app?
Yes, set the deployment target to iOS 5. You will have to make separate storyboards for iOS 5/6 and 7, and choose which to load upon startup based off of the device's OS.

Release of iOS 6.1 app with Xcode 5

I'm having trouble release an iOS 6.1 app with Xcode 5. During the development we worked on Xcode 4 and then switched to Xcode 5. The application is very large and is not optimized for iOS 7. So I used iOS 6.1 SDK to compile for both iOS 6.1. Application was tested with TestFlight and it worked flawlessly on both iOS 7 and iOS 6 devices. On both devices it had same iOS6 looks, which was satisfying.
The application base SDK is set to iOS 6.1 SDK and iOS deployment target is set to same 6.1 SDK.
We sent the application in the review and it was approved. When we released the application, we realized that it is run with iOS 7 looks on iOS 7 devices. This currently breaks our layout.
Is there any way to fix this and let application be released in iOS6 mode for now?
Yes , you can do that. You have to fix every Xib for both iOS 6.1 and iOS 7 so that user can get the UX standard in whichever version of iOS they use. You have to take care of several things. Like
Fix status bar overlapping issue , there are lots of disscussions in stackoverflow about it.
Use appropriate images that matches UX standard of corresponding version.
You have add new launch images/ icons for iOS 7.
etc in short.

IOS6 Developed application suppport in ios7?

Hello I am Develop the ios6 supporting application.My thought is ios 6 developed application is compitaple on ios7 or any otherway is available? and also If I developing the application using ios 7 is supporting earlier versions.Give the best solution for me.
An app compiled for iOS 6 runs in a special compatibility mode on iOS 7.
When you compile with Xcode 5 you must support at least iOS 7. By setting the "Deployment Target" you can also support older versions, but if you use features that are only available in iOS 7 you need to check first otherwise your app will crash on iOS 6.
Also note that the various UI components on iOS 7 are different sizes than on iOS 6. You need to cater for that either using Interface Builder (autolayout possibly) or in your code. How to do this is detailed in the iOS 7 Transition Guide.
The easiest solution is to only support iOS 7. The best option depends entirely on your circumstances, customer base, etc.

Different UI behaviour for iOS 7

Recently, I uploaded my application to Apple store from XCode 4.x with OS 10.7. After that I upgraded my machine with Xcode 5.0 to start with iOS 7. Now I downloaded my application from the Apple' store to iPhone 4S with iOS 7 installed. I see application's UI on device is totally different from the iOS 7 simulator. On device navigation and Tab bar are old fashioned like iOS 6 while I am expecting like iOS 7.
I think the reason behind this that the application has been uploaded from XCode 4.x and when I will upload it from Xcode 5 it will show the latest UI of iOS7.
Do anyone facing the same problem? Do you think Apple should do it itself?
You understand it right. Applications must build and updated on xCode 5 for showing the new iOS design.
You must check your app on xCode 5 before uploading it as "iOS7 ready", Note that your app might work fine with the old design on iOS 6 but no one can check that for you as they might be UI problems and even crashes depending on your old UI and code.
If you are using 100% iOS native interface you should not have to much work.
You are app is built on iOS 6 SDK, To use iOS 7 UI features, build your app using iOS 7 SDK. iOS 7SDK will be available with xCode 5. SO upgrade to xCode 5 and build app against base SDK 7.
Xcode 7 doesn't exists ;)
Your problem is that you compiled your app with Xcode 4. Only Xcode 5 is embedding iOS 7 SDK. If you want to solve your problem you have to submit your app again but compiled with Xcode 5.
(don't forget to set your correct deployment target)