Questions tagged [xcode8]

Xcode 8 is an IDE created by Apple for the development of macOS, iOS, watchOS, and tvOS applications. The first release of Xcode 8 was on June 13th, 2016 with Xcode 8 beta build 8S128d. *Do not use this tag unless your question specifically involves the Xcode IDE!*

1,524 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
31votes
2answers
897views

Some documentation features not working in Xcode 8

I'm experimented with documentation comments for Swift in Xcode 8 and found that not every feature from Markup Formatting Reference works. In particular, I can't make seealso: callout working and can'...
user avatar
16votes
0answers
5kviews

iOS Swift - How to use rectOfInterest correctly (barcode scanner)

I have an iOS App which scans a barcode. Now I wanted to define a specific scan area. For this purpose I am using the rectOfInterest property and metadataOutputRectOfInterest method. The problems I ...
user avatar
  • 180
13votes
1answer
5kviews

Shell Script Invocation Error: no such file or directory in xcode 8 with swift 3

When I compile my code, Shell Script Invocation error happen in my project. I did Clean->Build->Restart my project. But it didn't help. I did again Clean DerivedData, but still the same error. How to ...
user avatar
  • 516
11votes
0answers
3kviews

xcode 8 can't be opened on macOS 10.14

I am trying to migrate Swift 2 to Swift 4 but I need to have xcode 8 to do that. My problem is, the latest update on MacOS Mojave 10.14 does not allow me to open the outdated xcode 8. Anyone know ...
user avatar
  • 111
11votes
0answers
2kviews

Xcode 8.3.2: SourceKitService and lldb-rpc-server take more memory for specific project

I am not using Xcode beta version. The issue when I try to do a Build or Run the code it takes 1-2 minute time normally. When I work more for around 5-6 my system gets stuck more. When I check ...
user avatar
11votes
0answers
865views

Xcode 8 project navigator font size

I have updated to MacOS 10.12.4 Sierra and Xcode 8.3.2 but now going blind because the Xcode project navigator font size is so small. Is there a way to increase the navigator font size? We used to ...
user avatar
11votes
4answers
5kviews

Unable to retrieve CarrierName

Using iPhone6, Xcode 8.1, running iOS 10.1.1, executing the following Swift code I keep getting Unable to retrieve CarrierName Error message appears before my first ViewController even loads. I ...
user avatar
10votes
0answers
1kviews

NSToolbarItem had to adjust the size of NSButton

I'm trying to add a textured rounded button to NSToolbar. I used Interface Builder to add NSButton to allowed toolbar items and default items. I'm using Safari-style toolbar with window!....
user avatar
  • 4,325
9votes
1answer
1kviews

Bitcode error packaging ipa using xcodebuild

First off, I want to state that without bitcode , everything is working perfectly. The problems start when I turn on the "bitcode" flag in the app. Also, all of the builds are through a CI flow (not ...
user avatar
  • 13.8k
9votes
0answers
2kviews

CATransaction synchronize called within transaction

My app was working fine, displaying lines from an HTML file in a UITableView, but after updating some PODs the app crashes during startup and I receive this error and XCode doesn't show the exact line ...
user avatar
8votes
0answers
662views

Xcode 8.3 (iOS 10.3) Cannot launch simulated executable

My workspace has multiple targets one of which is unit tests. When I run my unit tests from Xcode on iOS 10.3 simulator they all passed. However, when I test from command line i.e. by xcodebuild <...
user avatar
8votes
0answers
467views

Is there a way to generate a runtime warning that Xcode 8 can pick up?

I would like what #warning message does for build-time errors but for Xcode 8's new runtime errors. To be clear, I'm not interested in just printing a warning with NSLog or compile-time warnings.
user avatar
8votes
1answer
2kviews

bundleIdentifier != nil when requesting iOS10 notification authorization via UNUserNotificationCenter.current().requestAuthorization

I'm getting a crash saying my bundle ID is nil 2016-08-31 10:39:11.630 WeatherHop[52533:17767791] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid ...
user avatar
7votes
1answer
666views

Python Syntax Highlighting in Xcode

Is there any way to achieve better syntax highlighting in Xcode for Python? Xcode only identifies and colorizes keywords, strings, numbers and comments. It doesn't seem to be able to identify the self ...
user avatar
7votes
0answers
522views

creating a static library for both OSX and IOS

I want to create with xCode a static library project that will be used by IOS and OSX applications. My wish is to have a single porject/target and 2 different build configurations, so when I want to ...
user avatar
  • 3,778
7votes
0answers
134views

Xcode performance testing failure percentage

I am performance testing a function using XCTestCase measure(_:). If the percentage increase in time (from the set baseline) is 62% worse, the test still passes: However, if the percentage increase ...
user avatar
  • 33.7k
7votes
0answers
2kviews

Failed to render and update auto layout status

Since few days ago I'm getting this error and I'm completely stuck on my project. This is just a Runtime issue, I can run my project but can't touch interface builder at all. Didn't change anything ...
user avatar
  • 2,217
6votes
0answers
412views

Brand new react native app fails on run-ios xcode 8.3

I just created a new React Native app using their CLI interface and it fails without making any changes. I first noticed this when I tried to use version 0.45.1, it still seems to be happening in ...
user avatar
  • 8,079
6votes
0answers
239views

How to catch core data 'constraint violation' Xcode8/iOS10

I have a small code set that captures data messages from a monitoring device. The messages contain a date/time field (startDts) that is unique. I am storing these with core data to a sqlite database. ...
user avatar
  • 1,372
6votes
0answers
417views

Proper way to debug your own framework project from main app project in Xcode 8?

I have read about two possibilities for that: To build the framework as debug, to add it to main app project, and run the main project also as debug. Breakpoints should allow you to inspect the ...
user avatar
  • 11.8k
6votes
1answer
525views

Crashlytics/Fabric beta distribution with Xcode 8

How do I generate beta builds with Crashlytics/Fabric under Xcode 8? Is it still possible to use Automatically manage signing or do I have to do it manually as in Xcode 7 and before? Currently a ...
user avatar
  • 16k
6votes
1answer
390views

Xcode does not quit after test

I am using Server and Xcode 8. I saw a new feature, to isolate the testing, for each integration bot a new Xcode is launched. But it can not quit itself after the integration is completed :) and then ...
user avatar
6votes
0answers
2kviews

How to clear those warning on Xcode8?

Recently, I am bring up my project to Swift3.0. And fix the upgrade issues on Xcode8.0. Some strange warning messages show up which not happen in Xcode7. Painter Z index: 1023 is too large (max 255) ...
user avatar
  • 701
6votes
2answers
2kviews

Disable One Signal Push Notification when app is in foreground ios 10 swift

I had disable infocus, autoprompt, launch url and app alert in onesignal launch options, but still banner is displayed when app is in foreground, is am a missing something or i had written something ...
user avatar
  • 2,051
6votes
1answer
1kviews

Xcode 8.3 Linker Warnings

Trying to Archive app prior to submitting to Apple. Warning limit exceeded - showing first 200 warnings only. Sample warnings: ld: warning: Linker asked to preserve internal global: 'sharedInstance....
user avatar
5votes
0answers
955views

Using dlopen() to load ios Embedded framework on runtime?

I recently learned about App Extensions on iOS platform. I have a framework which i want to integrate with an application that supports ios 7 as well. I learned that i can check the ios version on ...
user avatar
5votes
0answers
2kviews

Xcode: suppressing specific warning

To disable compiler warning I go to Project -> Target -> Build Settings and add flag -w for specific file. This flag disables all warnings. But my intention is to exclude a specific warning, not ...
user avatar
  • 1,807
5votes
0answers
517views

Xcode 8 update build number for multiple target before building

I have an app with 3 targets: app target message app app extension I'm trying to update the build number for each build, this number must be equal for all the target or App Store will invalid the ...
user avatar
  • 25.4k
5votes
0answers
352views

How to lower CPU usage extracting camera frames using AVFoundation on iOS?

I'm working on a machine learning project that needs to access camera frames at 60fps. Good picture quality is not a requirement, but processing time is. On my trial to achieve light processor usage ...
user avatar
5votes
0answers
480views

Why am I unable to view values in debug area?

After adding an expression -in the debug area-: I am facing an issue, which is: when reaching the desired line (via a breakpoint), the value is always appears as "Invalid expression", with a message ...
user avatar
  • 28.2k
5votes
0answers
1kviews

Including .dSYM file inside .ipa file

For iOS builds with Xcode 8, is it possible to include a generated .dSYM file into the .ipa file? I'm building my ipa files like this (in Jenkins but it shouldn't matter) ... # Create xarchive ...
user avatar
  • 9,129
5votes
0answers
1kviews

Selecting the "System Font" for an Attributed String through the Interface Builder

I am trying to select the "system font" for my labels in the Interface Builder. All of these labels contain attributed string. If they were "pain labels" I could just easily select the "system font" ...
user avatar
  • 13.3k
5votes
0answers
157views

Swift 3.0 compiler and Sourcekitservice memory allocation

I just came across with a stranger problem in my iOS swift 3 project. Scenarios: I have a list os objects that the objets has a property as you can see bellow: var total: Double { var sum = 0.0 ...
user avatar
5votes
0answers
348views

Xcode 8 Build with Jenkins CI

I'm having issues with automated jenkins build on a mac pro using Xcode 8.1 with xcodebuild. I would like my setup to: Pull down code for git (working) Archive (Archive fails) Create .ipa Deploy ...
user avatar
5votes
0answers
483views

How do you verify developer app install once and forever with Xcode 8?

Once I've upgraded and installed Xcode 8, my developing experience with iOS has gone down the gutter. Most frustrating of all is the need to verify the app every time the app is installed from Xcode. ...
user avatar
5votes
0answers
729views

XCode 8 signing product

I've just updated to XCode 8, I'm working with a old project ( probably created in XCode 6 or earlier ) the problem is (even in the simulator) XCode get stuck for at least half or one minute in the ...
user avatar
  • 1,880
5votes
0answers
906views

Xcode 8 stuck on "Signing Product"

I m building a SiriKit test application, I have 4 targets in project: The CocoaTouch Framework build successfully, but when I build the app(The Zero Target) Xcode always stuck on: I set "...
user avatar
  • 182
5votes
1answer
777views

How can I get Xcode 8 to auto-generate provisioning profiles from the command line?

I've just set up my projects in Xcode 8 to use the new automatic provisioning. I'm trying out my command-line builds (using xcodebuild to build .xcarchive and .ipa files kind of like this). For each ...
user avatar
  • 9,957
5votes
0answers
510views

Invalid WatchKit Support - The expected app is missing from the app’s root location

After searching, I couldn't find an answer to this exact issue. When I upload my app's build to iTunes Connect using Xcode 8 (GM Seed), it says that the build was uploaded. Then, I get an email with ...
user avatar
  • 330
5votes
0answers
340views

How do i set up constraints for SE and 6S+ when their both treated as w:compact h:regular

Using xcode 8, im trying to set up constraints to handle iPhone SE - iPhone 6s+ screen sizes. Now, using Phone 6+, I've set up my constraints manually, and boy does it look beautiful on an actual ...
user avatar
  • 441
5votes
0answers
2kviews

error memory read failed for 0*0 XCode 8 beta crashing in simulator

I converted my project written in Swift 2.2 to swift 2.3 to run in Xcode 8 beta. But the app is crashing when calling the webservice giving the "error memory read failed for 0*0" without giving any ...
user avatar
5votes
3answers
430views

how to use #undef directive in swift 2.3

I want to undefine or override NSLocalizedString in swift 2.3 and i search a lot about it and finally i found a way in Objective C to do this as below. #undef NSLocalizedString #define ...
user avatar
4votes
0answers
490views

Crashlytics not showing some crashes

I've added crashlytics in my app and I've uploaded a build in our private download site which is available for test users. The version which I had uploaded my build used crashlytics version 3.9.0. In ...
user avatar
  • 2,989
4votes
0answers
172views

React Native NavigatorIOS "PUSH" Crashes App When invoked on componentDidMount [Only on Cold Launch]

The react-native application checks the local storage for an auth token, and if the token is available the app will navigate to the main page, but the application crashes when trying to call this....
user avatar
  • 2,457
4votes
1answer
122views

iOS state restoration issue with DrawerController

I have an app written in Swift 3.1, using Xcode 8.3.3. I am currently trying to implement state preservation/restoration. To do this I have implemented shouldSaveApplicationState and ...
user avatar
  • 41
4votes
0answers
360views

Log messages from inside Framework to XCode Console

I have a XCode project which builds an executable (swift package init --type executable && swift package generate-xcodeproj). The executable imports a framework which normally logs messages to ...
user avatar
  • 3,906
4votes
0answers
5kviews

Provisioning profile does't include signing certificate (xcode 8)

At the moment of writing this question I am working to setup my app on my iPhone device. Initially (after a ionic/angular update in the build process) this works fine and the build and archive are ...
user avatar
4votes
0answers
39views

How to see selected method's full name on Xcode completion popup

I'm trying to implement a delegate method in Xcode, and I see many methods looking very similar as their names/signatures are truncated: For example, there's no way to distinguish which method is ...
user avatar
4votes
1answer
560views

Xcode 8: how to turn off autosave

Is it possible to turn off the autosave of edits in Xcode 8? I've seen a post to run defaults write com.apple.dt.Xcode ApplePersistence -bool no from a Terminal, but that doesn't seem to work for me.
user avatar
4votes
1answer
2kviews

Xcode 8 - Can't find User Header Paths

I have a project that was previously running in XCode 7, under Swift 2.2. However, I started migrating it to Xcode 8 and Swift 2.3 (Swift 3 will come later). This is my first time migrating a project, ...
user avatar
  • 181

15 30 50 per page
1
2 3 4 5
31