Faltan marcos predeterminados en Xcode 6 beta
Frecuentes
Visto 3,391 equipos
5
While creating a new project in "Xcode 6 beta", I noticed that there are no frameworks
adjunto.
In Xcode 5.x, when we created a new project, we had the following frameworks linked by default:-
- Fundación
- CoreGraphics
- kit de interfaz de usuario
- Prueba XCT
The frameworks that are linked when you create a new SingleViewController
proyecto en Xcode 5.x
LA DESAPARECIDO frameworks when you create a new SingleViewController
proyecto en Xcode 6 beta
Entiendo que esto es un beta
lanzamiento de la IDE
. But it will help if we come to know whether these frameworks are now linked internally?
Gracias de antemano.
1 Respuestas
4
In Xcode 6, the default for new projects is to use the module system (introduced in Xcode 5) to automatically link any frameworks you reference in code via import
(Swift) or @import
/#import
statements (ObjC). Because the project template contains code that imports Foundation and UIKit (and a test case target that imports XCTest), you get those frameworks linked automatically.
As Alladinian commented, there's a switch to enable or disable this in the project settings, so you can turn it on for old projects, too. (Or turn it off if it gives you trouble.). Once your frameworks are automatically linked, you don't need to put them in Linked Frameworks & Libraries anymore.
And if you want to start using other frameworks in your project, you don't need to add them I'm the project settings, either—just import MapKit or CloudKit or AVFoundation or whatever in your source code and they'll automatically get linked.
respondido 02 nov., 14:19
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas ios xcode xcode6 or haz tu propia pregunta.
Don't quote me on this, but I think they are indeed linked internally. Since if you look at the code, there's the
import UIKit
line and it doesn't give any errors (Swift project). - Lord ZsoltThey are imported as modules and linked automatically. In fact you could do this in Xcode5.x as well (for system frameworks) provided that you set
Enable Modules
&Link Frameworks Automatically
aYes
inApple LLVM 5.1 - Language - Modules
sección deBuild Settings
- Alladinian@LordZsolt you are correct. Foundation is automatically linked. You should make this into an answer. - tim peterson