Xcode storyboard will not accept changes

My storyboard seems locked. I added new shortcuts and images to two different scenes, but at runtime shortcuts and pictures are not displayed. (All source elements are displayed correctly.) I tried to clean, build, and build to run, test, and profile. I copied the entire project to another Mac. It launches the program, accepts changes in the code, but this Mac will also not allow changing the storyboard. (There are no added elements, without changing the position of the original elements.) It is as if the storyboard is locked for editing.

I was looking for information about locking the storyboard, but I can not find anything that seems to be applicable to me (i.e. I am not one of the teams working in the same program.)

I would be grateful for any ideas.

(Xcode 4.2 on the second Mac, Xcode 4.3.2 on the original, where the problem arose for the first time.)

+6
source share
5 answers

I had the same problem, and I realized that I was playing with the Lock localization parameter, which is located on the right side of the menu under Documents for creating an interface .

Localization locking

Make sure that the selected setting is Nothing if you want to make changes to the storyboard.

Hope this helps.

+15
source

I had the same problem in xocde6 and I got a response on the Apple developer site

  • In the project navigator, select the .storyboard or .xib file.

  • Select the lock level in the editor> Localization Lock Menu. Refer to Lock Levels for a description of the lock options in this menu.

To unlock all views in a file, select Reset Lock Controls.

For example, to prevent changes to the nib file that affect localized string files, select Reset Lock Controls and then Localized Properties.

+7
source

How I solved my problem:

My Target storyboard Membership somehow got unchecked.

You will find the target membership options in the same menu as the accepted answer, which is the File Inspector (first option) on the right to the right, when you have the storyboard selected in Xcode

0
source

I found that the Launch Screen booster has a way out, and I removed the view controller that served it.

0
source

The solution worked for me after choosing a locked view, go to

Editor> Localization Lock> Reset Lock Controls

And it will be reset

0
source

Source: https://habr.com/ru/post/917895/


All Articles