iOS Project Update Xcode 4.2 to Xcode 4.5
Asked Answered
P

6

8

enter image description here

In my Project I have done 90% development using XCode 4.2 (was only need to support 4.x,5.x), Now I need to Build for iOS 6 as well, so I switched to Xcode 4.5 & iOS 6. But I am facing lots of issues like framework error for "Sqlite3", "MobileCoreServices"

I have read below Thread but no success.

How to make Xcode 4.5 project work on previous version of Xcode?

Xcode linker Directory not found for option

Can anyone please tell me How can I compile "Sqlite3", "MobileCoreServices" frame work for ARMV7 & ARMV7S. I cant remove both from project, Since I have done almost :(

Pestilential answered 13/4, 2013 at 9:32 Comment(7)
something stupid, have you removed the references to the frameworks and added then again?Water
Thanks for quick responce. I removed but after removing there is no MobileCoreServices & Sqlite3 framework in XCODE 4.5.Pestilential
I think your installation is corrupt, you should try to reinstall Xcode, I have both of them in the project I'm currently working onWater
and by the way, why don't you move to Xcode 4.6?Water
Thanks My project is almost complete after this Ill move to 4.6,Pestilential
I have new mac with me with direct xcode 4.5, No update from 4.2 to 4.5Pestilential
let us continue this discussion in chatPestilential
A
3

There are uncertainties for the exact reason behind this but your problem can be solved by any of the cases provided below.

Case 1 :

It may be due to any missing library like libsqlite3.dylib and libsqlite3.0.dylib or MobileCoreServices, so copy these files from any other computer and place these files in your computer.

Procedure:

1:Open xcode on the computer where these files exists, add libsqlite3.0.dylib in your project from link binary with libraries. 2: Right click on the libsqlite3.0.dylib and show in finder (same for MobileCoreServices). 3: Copy two files libsqlite3.0.dylib and libsqlite3.dylib and place on the same location on other computer where these files are missing.

Here you go, The problem may be solved in this way.

Case 2: Reinstall XCode again it may work properly

Case 3: Check this answer

Hope it helps you.

Adeno answered 17/4, 2013 at 20:15 Comment(0)
S
2

When click on your project in the project explorer, for each target, select that target. Then in the build phase, in the link with binary libraries, check your framework links.

If you have simple problem, you can remove and add the libraries again.

If the library is not built for arm7s, then goto target's archtecture, in the valid architectures, set it armv7 only. See if this remove the problem. if it is, then the frameworks needs to be build for armv7s.

Shakitashako answered 15/4, 2013 at 12:39 Comment(0)
S
0

Try deleting this framework.. add it once again from sdk 6.0 (target -> build phase)

Sleet answered 15/4, 2013 at 12:34 Comment(0)
H
0

Mangesh, Since you are updating the project to iOS 6, it is normal that your frameworks go missing some times. In order to add them, please go to build phases and then open the tab Link with binaries and add both the missing files as shows in the screen below.

enter image description here

It should help you add the libraries and you are ready to build it. If you are still facing problems, you can also add the Framework search paths (This will be your local path for the frameworks) for the project under the Build settings. And also please make sure that the framework paths are recursive.

Hillock answered 15/4, 2013 at 15:10 Comment(0)
H
0

In your .pch file, add the following

#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
Huba answered 15/4, 2013 at 17:18 Comment(0)
A
0

sqlite 3 and MobileCoreServices are available with ios 6.

  • Remove red references
  • Go in Targets properties -> Build Phases, section Link Binary With Libraries
  • Click on Add button and add libsqlite3.dylib & MobileCoreServices.framework.

    If libsqlite3.dylib is not available in the list. Open your xcodeproj with a text editor then search and destroy hidden references to libsqlite3. And try again.

  • Xcode screenshot, Link Binary With Libraries screenshot

Vivien

Avocado answered 21/4, 2013 at 17:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.