Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Posts under Xcode tag

3,451 Posts
Sort by:
Post not yet marked as solved
5 Replies
58k Views
Hi,I'm trying to start Appium with a given .ipa and run the Inspector while my device (ipad mini 2) is connected to my mac machine via usb cable, but I'm getting such error:[iOSLog] [IOS_SYSLOG_ROW] May 30 14:23:05 Test-iPad notification_proxy[121] <Error>: 0x16e247000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!While I google it I found that in order to solve it need to enable the UI Automation option from Developers options in the device itself.But I cant see "Developers Options" in the settings of my device (with ios 9.3.1 - XCode 6.4)!I serached for it and found that in order to enable it need to have a provisioninf profile:ProcedureRun Google Chrome, Mozilla Firefox or Safari.In the iOS Dev Center, click Certificates, Identifiers & Profiles.In the iOS Apps panel, click Provisioning Profiles.Click +.Select iOS App Development and click Continue.Select an App ID to associate with the provisioning profile and click Continue. To be able to use one development provisioning profile across multiple apps, select a wildcard App ID, if available.Select one or more certificates for development to include in the provisioning profile and click Continue.Only certificates for development are listed.Select one or more devices to include in the provisioning profile and click Continue.Enter a name for the profile and click Generate.(Optional) Click Download to download the provisioning profile.But when signing in with my account I have no such option: Certificates, Identifiers & Profiles.Please advice...
Posted
by
Post not yet marked as solved
2 Replies
1.1k Views
Xcode is opening all of my storyboards and xcassets files as text. The menu option for "Open As..." now contains just one grayed out entry "<None>. When re-opening Xcode with an xcasset file it does say "No editor" for a moment before opening the file as text. I did install a macos update this morning which may have triggered this but I can't be sure. Is anybody aware of a fix for this?
Posted
by
Post not yet marked as solved
3 Replies
1.9k Views
I noticed that some amount of effort has been put into Xcode to support yacc/Bison source files (.y, .ypp, .ymm) and lex/Flex source files (.l, .lpp, .lmm) out of the box conveniently with Xcode projects, that is you just add those source files to your Xcode project and Xcode will automatically generate the respective parser and scanner for you.However there is one issue I encountered: for a pair of Flex/Bison scanner/parser one usually wants Bison to additionally generate the parser's definitions as separate header file, which would be on the command line either:bison -d foo.y mv y.tab.h foo.horbison --defines=foo.h foo.yThat auto generated C/C++ header file (in this case foo.h) would then be included i.e. on scanner side (i.e. to avoid declaring terminal symbols twice on both ends).Is there a convenient way to handle generation of such parser header files with Xcode as well?As far as I can see it at the moment (with Xcode 7), when I look at the auto generated output files, Xcode actually calls Bison to let it generate the definition header file and a y.tab.h file is created accordingly, so if you just have exactly 1 Bison parser then you can do a hack and use a#include "y.tab.h"statement in your respective source files. But since the auto generated header file will always be named "y.tab.h", what would you do if you got multiple Bison parsers in your project? Shouldn't Xcode automatically domv y.tab.h foo.hfor each parser it generates?
Posted
by
Post not yet marked as solved
2 Replies
2.8k Views
Hey,I'm attempting to create a File Template that contains folders. Take the structure below as an exampleMyFileTemplete.xctemplate TopLevelFolder SecondLevelFolder - class SecondLevelFolder ThirdLevelFolder -classIf I just setup a template and add my folders and classes it works but when it adds to the project it addes them as File Referance(blue folder icon).Is there any way to add the folders as a group?EDIT: I'm looking for a way simialar to the project template where you use Definitions and node keys to create groups. This doesn't seem to translate over to the file template.<key>Definitions</key> <dict> <key>hello.h</key> <dict> <key>Group</key> <string>Supporting Files</string> </dict> </dict>BooRanger
Posted
by
Post marked as solved
13 Replies
42k Views
When running my app on my device for debug, message is shown===========Development cannot be enabled while your drive is lockedPlease unlock your device and reattach.(0xE80000E2).===========<Env>Xcode: Xcode 8 beta 2iOS: iOS 10 beta 2What's the problem? T.T
Posted
by
Post not yet marked as solved
11 Replies
2.9k Views
XCode 8 Beta 2 on a Retina MBP (Mid-2014) run 10.11.5 - using Magic Mouse and a plugged in Apple Extended KeyboardHas anybody else seen this "ghost-in-the-machine"-like behavior of auto-scrolling an Xcode editor window.I can have two windows open with swift source code on both. I scroll to the bottom of one window. I Alt-Tab to the other one and the active cursor is on the second editor. The first window will snap up about 20 lines. It's not a full page up. And it has happened even when I'm editing that window. I've also had it happen when I was typing in this post. The cursor does remain where it's supposed to be but the view scrolls. Anybody else see this? I couldn't find a post anywhere about it. Thanks for any help. I can work around it but man is it annoying.
Posted
by
Post not yet marked as solved
2 Replies
4k Views
I'm using a xcodebuild comand to build my apps, but when i try to run the comand, i get the following error:Scheme "SchemeName" is not currently configured for the clean action.I've checked the "shared" option for my scheme, but now i don't know what to do to solve this problem.
Posted
by
Post not yet marked as solved
2 Replies
5.2k Views
I am trying to code in Xcode but I need a Apple Developer enrollment because "No code signing identities found".I followed the page it led me to. I just wanted to know if the enrollment is free and if the issue will be fixed.-Thank you for your time
Posted
by
Post not yet marked as solved
8 Replies
18k Views
Am getting this when trying to run on device. This is the case even though the provisioning profiles for the app and extensions have been set up properly. Also, this occurs even after Xcode reports that its installing the app. Wondering if anyone is running into this issue with XCode 8 beta 6?
Posted
by
Post not yet marked as solved
7 Replies
18k Views
✅ It's not a serious problem but very annoying after updating to Xcode 8 and macOS Sierra. A lot of "is missing from working copy" warnings have shown up like the following one. I know these files were deleted from my project several months ago. Does anyone know how to get rid of them?warning: Missing file: /Users/me/Desktop/MyAppFolder1/MyAppFolder2/MyAppxcode/MyApp/Textrtfd_iPhonePlus/8_10plus.rtfd/TXT.rtf is missing from working copy
Posted
by
Post not yet marked as solved
10 Replies
4.9k Views
Ok, so when I go to archive my app in Xcode 8, all goes well until after validating I get this error:"You must supply a CFBundleIdentifier for this request"I have everything in correctly and I can't see what's wrong.Any help greatly appreciated.images:https://gyazo.com/526fb6714c104a70f5cf686ff768a15ahttps://gyazo.com/3a417c6867dad82730a3c0916d6d4b7c
Posted
by
Post not yet marked as solved
40 Replies
194k Views
Hi everyone, I just installed Xcode. Version is 8.0I registered myself (personal team) as a team. I wasn't able to create the provisioning file. How can I fix this? I already searched for fixes in google, but didn't find anything helpful. Thank you!I have an iPhone 6s and a Macbook Pro. Cheers. Mr Cheers.
Posted
by
Post not yet marked as solved
3 Replies
602 Views
Hi folks,I'm working within an Xcode workspace, and I've noticed that Xcode isn't showing me any build warnings for target dependencies when building from within Xcode. Building with the xcodebuild command line utility shows warnings fine, and when I switch to the Report Navigator I see the warning symbol on builds if warnings are present, but I can only see these when switching to the Report Navigator. I see nothing in the toolbar, for example.If I switch to the dependency project with the warning and build that, warnings show up fine.I'm seeing the same behaviour in Xcode 7 and Xcode 8.I double checked that I had warnings enabled (and this does work, from xcodebuild and shows in Report Navigator).Anyone have any ideas? Is this me, or an Xcode bug?Cheers,Michael
Posted
by
Post not yet marked as solved
6 Replies
35k Views
i have an app that seems to build successfully.but when i select archivei get this errorCheck dependenciesSigning for "dcmotorApp" requires a development team. Select a development team in the project editor.Code signing is required for product type 'Application' in SDK 'iOS 10.0'i been searching everywhere but i still cannot find the solution to this problem.how to solve this?Thanks for helping in advance.
Posted
by
Post not yet marked as solved
1 Replies
1.5k Views
Dear all,As obvious I am new in the xCode and in the Forum.Could somebody please tell me if installing in an external drive was possible? xCode I mean.
Posted
by
Post not yet marked as solved
0 Replies
335 Views
A while ago I decided to resume developing.After upgrading my mac to Sierra and Xcode 8.0 and renewing my developer account, I am now stuck in a endless loop of certificate revoking and re-creating. Just touching the build settings generates the "Reparing" message to show under Signing Certificates and then I get the red dot and "Missing private key" message with the Revoke button. Revoking a recreating gives me nothing but the same message again.I have hit that now several times and the end result is that my keychain is exploding with certificates and keys that are automatically generated. The "Certificate Revoked" emails are piling in the inbox up as well.So far I have tried;Creating a complete new user profile on my Mac but the problems are the same.Cleaned out the entire keychain of both keys and certificates, but xcode adds them automatically to the list.Removed my developer AppleID from xcode and re-added it.Still no go,The only thing I can think of is that the profile on developer.apple.com shows my name with the Swedish letter "ö". I have tried changing the associated AppleID account but dev-center still shows the initial version of my name.Any ideas about this?
Posted
by
Post not yet marked as solved
0 Replies
1.6k Views
I turned on the preference setting "xcode "highlight instances of selected symbol" not working" so symbols would highlight with the underline. I have the project NewtonsCradle open and the file NewtonCradle.swift open. When I select a symbol inside of a function it doesn't highlight the other occurences. I have seen it work with other files but I can't reproduce it. I changed the file and saved it to make sure it was wrightable thinking that was the problem. Also the Refactor items are all greyed out.
Posted
by
Post not yet marked as solved
11 Replies
9.8k Views
I'm in the process of downloading/installing XCode 8.1 from the appstore. The process has been underway now for about 7+ hours. The status currently shows 2.61GB olf 4.47GB. This has to be the worst application install I've ever worked with on ANY platform! I'm running on an early 2015 MacBook Air with 8GB RAM, 500GB SSD and dual-core I7 processor. I just don't understand how this process can be so painfully slow. I'm about to leave my office, I'm hoping I can pause this process and resume at home without having to restart from the beginning.
Posted
by
Post not yet marked as solved
1 Replies
193 Views
How is it that ITLibrary only returns artwork for PURCHASED media from iTunes? There is no such restriction mentioned anywhere in the documentation.My iTunes Library is fully populated, and I need access to the artwork I have carefully curated over the years for various media.An ITLibMediaItem's hasArtworkAvailable flag is always false, and its artwork (ITLibArtwork) object never contains any imageData.Worse, if I call ITLibrary's artwork(forMediaFile: ) method, it NEVER extracts or returns a valid ITLibArtwork object AS DOCUMENTED.What's up with that, Apple?
Posted
by
Post marked as solved
9 Replies
9.6k Views
When we develop a dynamic framework and distribute it to reuse. We combine simulator (i386 and x86_64) and device(arm7, arm7s and arm64) architectures into one. So that developer can easily run an app on simulator and device without any error.If we try to submit the universal framework, AppStore rejects it. In order to fix this error, we use lipo command to remove simulator architectures.My question is Is usage of "lipo" command recommended by Apple?
Posted
by