I look through the internet I didn't find the answer so here is the problem
I had a project that I used cocoa pods in it and so open it through workspace file that cocoa pods created for me, but after update my os (clean install) to MacOS Sierra the .xcodeproj file is disabled when I open the project within .xcworkspace and every file underneath is not showing, I had many files grouped into Xcode folders under .xcodeproj file
Related
Facing this issue when opening flutter project in Xcode
/Users/user/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.2/ios/Classes/webview-umbrella.h: No such file or directory (in target 'webview_flutter_wkwebview' from project 'Pods')
Please try these steps
Delete podfile.lock (Do NOT delete PodFile)
Delete .symlinks folder
Delete pods folder
Navigate to ios directory in terminal and run pod install
Open the xcworkspace file in xcode
Select product -> clean build folder
Run the project from xcode once. All subsequent builds should work in your ide
I'm trying to add to my app both Moltin and Firebase pods. I know that if I want to open the file (with only one pod installed) I need to open it from the .xcworkspace file instead of using the .xcodeproj file.
Which file do I have to open if I have more than one pod installed (and so two .xcworkspace files)?
After you install your first pod, you should always use .xcworkspace.
It doesn't matter how many pods you have installed, after the first one, always use .xcworkspace.
In other words:
0 pods, use .xcodeproj
1+ pods, use .xcworkspace
There will only be one .xcworkspace.
You can install more than one pods in podFile , as Gustavo said , There will only be one Podfile in a project.Create it once and add pods into Podfile whatever you want like :
target 'AppName' do
frameworks
use_frameworks!
pod 'Firebase'
pod 'Moltin'
...
Xcode workspace is a directory (not a file) which has a .xcworkspace extension. Finder shows it as a package. It actually is an Xcode document that groups projects and other documents so can be worked together in your project.
A workspace can contain any number of Xcode projects, plus any other files you want to include.
When you open an XCWORKSPACE, it opens the associated project and restores the perspective. Therefore, Xcode workspace files can be used as a wrapper or container for an Xcode .XCODEPROJ project.
Xcode workspace directory includes a vital XML file named contents.xcworkspacedata, and it looks like:
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:MySampleProject.xcodeproj">
</FileRef>
<FileRef
location = "group:OtherProject(for example Pods).xcodeproj">
</FileRef>
</Workspace>
In this arbitrary tree, group: represents the directory of your project/s (as many you have).
Additionally .xcworkspace always exists it may be external to an .xcodeproj, or embedded within one. Therefore, whenever you see .xcworkspace you have to use it to open your project.
I did a straightforward pods install into an existing Xcode project. When I open the xcworspace file, all I see is:
What I see in when I open xcodeproj is:
How can I fix this so I can see all my folders when opening xcworspace?
You can't have both the project AND the workspace open in Xcode at the same time.
Go into Xcode, close both the workspace and the project, then only open the .xcworkspace file and you will be able to click the disclosure triangle next to the xcodeproj and list those files in the file IDE along the left side.
I've just updated Xcode 4.5 via the App Store, from my previous version which I got from my Apple Developer Account. Since the update I can't compile any apps into the Simulator. I can compile onto a device, e.g. my iPhone.
The error I recieve is
fatal error: file
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/Availability.h'
has been modified since the precompiled header was built
1 error generated.
go in ~/Library/Developer/Xcode/DerivedData/{project name + gobly-gook} and delete folder with your project name.
EDIT After suggestion
NOTE:
By default Library Folder is hidden so we can't see it.
So we have three way to use this hidden ~/Library folder
1.Unhide Library folder by following command to unhide ~/Library folder
chflags nohidden ~/Library
Now you can see Library folder as /Users//Library
2. Open GO menu of finder and press Alt key and Library will be visible as new menu item.
Select that to open Library folder
3. You can access ~/Library folder by Terminal.
There's easiest way: Just "clean" project (Product > Clean)
You can just open the Organizer (top-right corner of XCode), go to the Projects tab, select your project on the left and then delete the Derived Data.
This happened when I updated Xcode from 6.0.1 to 6.1
I cleaned the project and could compile successfully!!
I have a Xcode project MyProject.pbproj in which a project file project.pbxproj has the property objectVersion = 38;
When I try to open it with Xcode, I get the message
Failed to load project at '...', incompatible project version.
The version of my Xcode is 4.3.2
I'm new to the Xcode and complete Mac OS environment and I do not know what to do.
If my project is too old for my version of Xcode, is there any way to port my project to higher version of Xcode?
I was able to solve a similar problem by doing this:
Create a new project in XCode.
Copy the source files (.m and .h) from the old project to the new project.
Use File > Add Files to add those source files to the project.
Add some "#import" lines that seemed to be missing for some reason.
Convert the old project's .NIB file to a .XIB file:
a. Open the .NIB file in XCode.
b. Choose File > Duplicate.
c. Choose File > Save. Choose .XIB format and overwrite the .XIB file of your new project.
Hope this helps. I'd love to know if there's a better way.
Good luck,
Philip.