"Storyboard.storyboard" could not be opened - iphone

The document "Storyboard.storyboard" could not be opened. Could not
read archive.
Please use a newer version of Xcode. Consider changing the document's
Development Target to preserve compatibility.
Can't we run it on xcode 4.2 by making some changes in settings.

Open storyboard file as source code, then change the version at the beginning from 2.0 to 1.0. Open it this time as storyboard file and voila :)
got it from: http://www.xappsoftware.com/wordpress/2012/09/17/how-to-open-a-storyboard-created-with-xcode-4-3-or-4-4-with-xcode-4-2-workaround/

Select 'Storyboard.storyboard' in the project navigator. Go to the utilities area and open File Inspector. In the Document versioning section, change the 'Development' to Xcode 4.2

Related

Why doesn't Xcode recognize Main.storyboard?

I am running Xcode 9.2 on 10.13.3 and just today ran into a problem with Xcode not recognizing Main.storyboard on an app that I am building. It worked on Friday and then today when I opened the app to work on it I get the following error:
.../Base.lproj/Main.storyboard: Interface Builder could not open the
document Main.storyboard" because it does not exist.
Visually the file is there but does not respond. It is listed correctly in info.plist.
I tried pulling versions from Time Machine from last week and I still get the same error.
Is there anything short of rebuilding the storyboard that I can do to get Xcode to recognize it?
Did you try Removing the storyBoard and Re-Add it in Main Bundle ? Just make Copy of your Storyboard and Delete it from Xcode Project and Again Drag And drop the copy made in Xcode Project with check Copy items into destination group's folder (if needed)
And
Also check
Link - Interface Builder could not open the document ".storyboard" because it does not exist
Other options are Also Provided there
When you upload your file to google drive without zip, it appends the extension of .storyboard to .xml automatically and hence when you download it obviously the file won't exist. To solve this issue, go to the [project folder]>[Project folder]>[Base.lproj]. There would be a .storyboard.xml extension type of file which you would have to rename it to the .storyboard extension. And hence your work is done.
Story board error solving visual guide.
Delete derived data. The location is under xcode>preferences
Follow below steps:-
1.Save a copy of the affected file outside of the project
2.Delete the file from the project, selecting Move to Trash to completely
3.delete the file and reference from the project
4.Edit ProjectName.xcodeproj/project.pbxproj to remove all lines referencing the affected file Re-add the file, making sure to check
Copy items into destination group's folder (if needed)
5.Clean and build
Try opening Xcode and go to runner then double click on the main storyboard then uncheck runner , that worked for me.

Plugins don't work on xcode 6

Yeah, we have a new xcode version - xcode 6 and all old plugins don't work.
I know there is a new DVTPlugInCompatibilityUUIDs for each Xcode version and this problem will be fixed by plugin authors.
But DVTPlugInCompatibilityUUIDs is just a text, how can we find it? How can we fix without waiting for someone
Update
xcode 6.3.2: DVTPlugInCompatibilityUUIDs = E969541F-E6F9-4D25-8158-72DC3545A6C6
XCode 6.4 (6E35b): DVTPlugInCompatibilityUUIDs = 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90
XCode 7.0.b2 (7A121I): DVTPlugInCompatibilityUUIDs = AABB7188-E14E-4433-AD3B-5CD791EAD9A3
Make sure your hidden folders are shown on your MAC ,
Hold Option Key and click on Go option in finder menu.
Go to Following Location -
library/Application Support/Developer/Shared/Xcode/Plug-ins
Right click on the plug in and select show package contents
Open the info.plist file and find the DVTPlugInCompatibilityUUIDs and expand that section.
Click the + button and paste the C4A681B0-4A26-480E-93EC-1218098B9AA0 .
Save the file and restart Xcode.
No Need to repeat for all plugins that are already installed to Xcode 6.
I have Xcode 6.1.1, here's what I did and it worked.
Right click on plugin file > Show Package Contents
Find and edit the Info.plist file.
In DVTPlugInCompatibilityUUIDs add the key C4A681B0-4A26-480E-93EC-1218098B9AA0 (thanks to amavi message)
Save your Info.plist file.
Then go to /Applications/Xcode.app/Contents/PlugIns folder, and copy your plugin file there (the administrator password will be required).
You can now launch Xcode and use your plugins ;-)
Run below command in Terminal. It will auto add Xcode's compatible UUID to all plugins:
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID`
From https://gist.github.com/neonichu/9487584 use the following to get the DVTPlugInCompatibilityUUID of your Xcode version
/usr/libexec/PlistBuddy -c 'Print DVTPlugInCompatibilityUUID' "$(xcode-select -p)/../Info.plist"
For Xcode 6.2 add A16FF353-8441-459E-A50C-B071F53F51B7 to DVTPlugInCompatibilityUUIDs
xCode 6.3.2 was E969541F-E6F9-4D25-8158-72DC3545A6C6
I just check the plugins from /Applications/Xcode.app/Contents/PlugIns (Any plugin and use what they use for DVTPlugInCompatibilityUUID) and it works.
Adding more info:
The Path is to xCode app itself and within it go to Contents/PlugIns folder and you will see a bunch of plugins for xCode. Open any plugin package and go to Contents of it and open Info.plist, which will have the property DVTPlugInCompatibilityUUIDs. I did compare a couple of them and they seem to have the same so i copied that and used it which worked just fine.
XCode 6.4 (6E35b): DVTPlugInCompatibilityUUIDs = 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90
XCode 7.0.b2 (7A121I): DVTPlugInCompatibilityUUIDs = AABB7188-E14E-4433-AD3B-5CD791EAD9A3

iOS Project Update Xcode 4.2 to Xcode 4.5

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 :(
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.
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.
Try deleting this framework.. add it once again from sdk 6.0 (target -> build phase)
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.
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.
In your .pch file, add the following
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
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.
Vivien

Convert regular xcode application project to iOSOpenDev

I'm new to jailbroken dev. I have a regular xcode application project. Now I need to convert it, or create a new application project using iOSOpenDev for jailbroken dev. I found the same question:
xcode project conversion to iOSOpenDev
But I have no idea what to do with the first step. Do I need to add some settings or change some values of existed settings? Pleas give some more details.
thanks!
About the first step, I did some tryings and it worked out. The following steps is just the same as kokoabim said:
1.change the install path to /Applications; add iOSOpenDev's include,lib,framework folder path to Framework Search Paths,delete iphonesimulator from Supported Platforms in Build Settings, Header Search Paths, Library Search Paths(I'm not sure if it's necessary);
Add a run script build phase (must be last in order) to existing target that executes /opt/iOSOpenDev/bin/iosod --xcbp.
3.Create the Debian package control file under the existing target's folder as (target's directory)/Package/DEBIAN/control.
4.Perform a Build For Profiling (Cmd-Shift-I).

Linking Error libxml2.dylib at Xcode 3.2.5 & SDK 4.2

I am trying to connect to twitter using oauth library. The library needs libxml2.dylib to be added. When adding this to SDK 4.1 or less the project build successfully. But when I use that with xcode 3.2.5 and SDK 4.2 I got errors about missing headers
I just add the libxml2.dylib to frameworks then from target configuration I add "${SDKROOT}/usr/include/libxml2" to the header search path.
I got error: libxml/xmlreader.h: No such file or directory.
the twitter oauth library I am trying to add is Twitter+OAuth, here's a tutorial where u can see that the src project it has, works correctly on SDK 4.1, and not even compile at SDK4.2 http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/
what I miss?
After trying several things, I found I have to change the header search path to /usr/include/libxml2/** instead of ${SDKROOT}/usr/include/libxml2/**
Select "All Configurations" (I prefer the project info unless I have very different targets), double-click the header search path field, enter the path and make sure to check the "Recursive" checkbox. The resulting path should have 2 asterisks. If you set the header search path for the project, all the targets should inherit it properly.
The tutorial you linked to is a bit inconsistent with regard to project/target settings, which is almost certainly the issue. I have verified that xmlreader.h is present in SDK 4.2.
I had the same issue, then i realized that i was only adding the header search path in the target section, and not in the project.. be sure that it is in both sides.