Search results for

“Xcode”

93,783 results found

Post

Replies

Boosts

Views

Activity

Approach to building an AU which is both effect and instrument
I've been selling an AU for some time now that includes both instrument and effect versions as separate bundles.One of the issues with this has been namespace collisions of objective-C class names when both instrument and effect versions are loaded. I've followed this advice:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/LoadingCode/Tasks/NameConflicts.htmlSpecifically, I have macros such as the following:#ifdef AUDIO_UNIT_EFFECT #define AntimatterAUViewFactory ComSubatomicAudulusEffectAntimatterAUViewFactory #else #define AntimatterAUViewFactory ComSubatomicAudulusAntimatterAUViewFactory #endifHowever I've noticed in Xcode 6, this defeats interface builder's ability to parse headers and thus I can't fully edit my xib files.So I'm curious how others deal with building an AU which has both instrument and effect versions? Could both versions be put in a single bundle?(Looking forward to the new app extension based AU API!)
0
0
272
Jun ’15
Reply to Creating an IBOutlet or IBAction from a UIButton within a UITableViewCell subclass in a static UITableView
I found a workaround:Instead of control+dragging from the storyboard to the Swift file, I did the following.Declare an @IBOutlet property in the appropriate Swift fileDrag from the circle plus icon that appears in the gutter to the left of that property to the view on the storyboard that you would like to hook up.At first, this wasn't working for me because (at least on OS X El Capitan) Xcode 6 would try to resize the Assistant editor divider whenever I dragged from the circle plus icon.
Jun ’15
Reply to app crashes during the review
Good work. You just need to upload the new binary from Xcode, then after the build has finished processing (usually just a few minutes) go to the new app version in iTunes Connect, select the new binary you just uploaded, save and Submit for Review again. Unfortunately a new binary always means a whole new review cycle (they don't know what else you may have changed).
Jun ’15
The file “VRIC” couldn’t be opened because you don’t have permission to view it.
Hi,I was developing away and testing my App on the simulator as well as on my iPhone 6. I received a phone call, so I disconnected my phone from the cable attaced to the Mac, and when I was done I plugged it back in - when I do that iTunes starts syncing - I quit iTunes and proceeded to build my app to test on my iPhone and since then I keep getting this error...** The file “VRIC” couldn’t be opened because you don’t have permission to view it. **I have tried the following suggestions offered on this site...http://www.codedisqus.com/0NJWWqUXXj/the-file-myappapp-couldnt-be-opened-because-you-dont-have-permission-to-view-it-when-running-app-in-xcode-6-beta-4.htmlStill I cannot get my App to load on my iPhone, it works fine in the simulator.Can someone please help!Thanx in advance.
0
0
369
Jun ’15
Uploading App video preview for iTunes Connect
So I read I can use QuickTime to make a preview video for my app and upload to iTunes Connect but I need to have OSX 10.10.3 Yosemite. I currently use OSX 10.9.5 and am fearful of upgrading to 10.10.3 Yosemite because i'm afraid if I do so all my Xcode Projects files on my desktop will get deleted. What can I use to make a video of my app for preview besides OSX Yosemite's QuickTimes feature in simulator? Is there another feature i'm not noticing in Xcode 6.1's simulators that I can use for recording and editing a short video?
1
0
295
Jun ’15
Grid mode in SpriteKit scene editor! NEED!
Xcode 7 has great tools for creation game levels.But why we can't use grid-mode in scene editor?! It is a really important thing!For example, I need to fast creation of my platformer-style game.So I need to put sprites and nodes fast and CORRECTLY (to correct positions)...Without grid-mode this work is horrible, slow and not effective... Cause itvery difficult to put nodes together fast and to correct positions, without overlapping and without one-pixel hole.What you think about it? And I wonder what Apple think about it?
3
0
1k
Jun ’15
Watch Simulator not loading watchOS apps in 7 beta
I searched to see if anyone else is having this problem, but haven't seen anything yet. When I try to load a program into the XCode 7 watch simulator, I get a failed to load application error and the app never loads into the simulator. I have tried restarting everything to no avail. Does anyone know how I might reset things so I can get my apps to load on the simulator? Thanks!
6
0
2.6k
Jun ’15
Reply to Failable initializers for Classes
You could do it like thisfunc randomlyDangerousInt() throws -> Int { let potential = arc4random() if (potential == UInt32.max) {throw NSError(domain: overflow, code:0, userInfo: nil)} if (potential % 4 == 0) {throw NSError(domain: invalid, code:666, userInfo: nil)} else {return Int(potential)} } class TestClass { let x: Int let y: Int let z: Int init?() { var shouldFail = false do {x = try randomlyDangerousInt()} catch {shouldFail = true; x = 0} do {y = try randomlyDangerousInt()} catch {shouldFail = true; y = 0} do {z = try randomlyDangerousInt()} catch {shouldFail = true; z = 0} if (shouldFail) {return nil} } } let a = TestClass() let b = TestClass() let c = TestClass()Or, you could make your class a struct if that would work (and then can return nil at any point during initialization), or encapsulate parts of your class in a separate struct like this:struct CTCResources { let x: Int let y: Int let z: Int init?() { do { x = try randomlyDanger
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
XCode Interface Builder and Simulator basics
This is my first foray into iOS and using XCode development. After making a brisk start using iOS ToDo List tutorial...I have become stuck on following issues and cannot progress! Please help...How do I get different scenes to align in storyboard. I cant seem to drag the 3rd scene and align it to the other two. I have cleared all constraints.When creating Segues to link two scenes on canvas - the scenes are not on the full screen...How do I drag from on be scene to another AND scroll the screen at the same time?Utility area - How do we scroll further down to see content e.g. properties in Attributes Inspector? The frameworks at the bottom right of the screen seem to prevent this.iOS Simulator - Running the iOS introductory ToDo list tutorial - for some reason the table view controller starts in the middle of the screen and I cannot scroll up in the simulator.iOS Simulator - Navigation Controller's Navigation bar and the bar buttons don't show.
0
0
273
Jun ’15
Reply to Trying to install GCC using brew
I have found a workaround, after installing the command line tools from Xcode 6.3 it works, see https://github.com/Homebrew/homebrew/issues/40650 for more information.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Approach to building an AU which is both effect and instrument
I've been selling an AU for some time now that includes both instrument and effect versions as separate bundles.One of the issues with this has been namespace collisions of objective-C class names when both instrument and effect versions are loaded. I've followed this advice:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/LoadingCode/Tasks/NameConflicts.htmlSpecifically, I have macros such as the following:#ifdef AUDIO_UNIT_EFFECT #define AntimatterAUViewFactory ComSubatomicAudulusEffectAntimatterAUViewFactory #else #define AntimatterAUViewFactory ComSubatomicAudulusAntimatterAUViewFactory #endifHowever I've noticed in Xcode 6, this defeats interface builder's ability to parse headers and thus I can't fully edit my xib files.So I'm curious how others deal with building an AU which has both instrument and effect versions? Could both versions be put in a single bundle?(Looking forward to the new app extension based AU API!)
Replies
0
Boosts
0
Views
272
Activity
Jun ’15
Swift Terminal Window in Xcode Beta
How do I bring up the Swift terminal window after entering the Xcode Beta welcome window?
Replies
1
Boosts
0
Views
474
Activity
Jun ’15
Slow playgrounds output on Xcode 7
The output on playgrounds on xcode 7 is extremley slow or is it just me ? I see that, playgrounds is now using the ios simulator to display output. Just wanted to know if anyone else is on the same boat.
Replies
6
Boosts
0
Views
4.4k
Activity
Jun ’15
Xcode 6.3.2 won't archive properly.
I upgraded to XCode 6.3.2 and suddenly my app store archives are showing up in the Other items section instead of iOS. Does anyone have any ideas why this suddenly broke with this release.
Replies
2
Boosts
0
Views
794
Activity
Jun ’15
Reply to Creating an IBOutlet or IBAction from a UIButton within a UITableViewCell subclass in a static UITableView
I found a workaround:Instead of control+dragging from the storyboard to the Swift file, I did the following.Declare an @IBOutlet property in the appropriate Swift fileDrag from the circle plus icon that appears in the gutter to the left of that property to the view on the storyboard that you would like to hook up.At first, this wasn't working for me because (at least on OS X El Capitan) Xcode 6 would try to resize the Assistant editor divider whenever I dragged from the circle plus icon.
Replies
Boosts
Views
Activity
Jun ’15
Reply to Xcode 7 crashes when trying to select the Main.storyboard.
I found a directory RCWebColorPicker.colorPicker floating around in my /ColourPickers directory. Had a creation date of 1 Jan 2011. Don't know where it came from, but I zapped it and now can open my storyboard in Xcode 7 Beta. Thank you kcathey!
Replies
Boosts
Views
Activity
Jun ’15
pin xcode 7
how do i pin in xcode 7
Replies
7
Boosts
0
Views
1k
Activity
Jun ’15
Reply to app crashes during the review
Good work. You just need to upload the new binary from Xcode, then after the build has finished processing (usually just a few minutes) go to the new app version in iTunes Connect, select the new binary you just uploaded, save and Submit for Review again. Unfortunately a new binary always means a whole new review cycle (they don't know what else you may have changed).
Replies
Boosts
Views
Activity
Jun ’15
The file “VRIC” couldn’t be opened because you don’t have permission to view it.
Hi,I was developing away and testing my App on the simulator as well as on my iPhone 6. I received a phone call, so I disconnected my phone from the cable attaced to the Mac, and when I was done I plugged it back in - when I do that iTunes starts syncing - I quit iTunes and proceeded to build my app to test on my iPhone and since then I keep getting this error...** The file “VRIC” couldn’t be opened because you don’t have permission to view it. **I have tried the following suggestions offered on this site...http://www.codedisqus.com/0NJWWqUXXj/the-file-myappapp-couldnt-be-opened-because-you-dont-have-permission-to-view-it-when-running-app-in-xcode-6-beta-4.htmlStill I cannot get my App to load on my iPhone, it works fine in the simulator.Can someone please help!Thanx in advance.
Replies
0
Boosts
0
Views
369
Activity
Jun ’15
Uploading App video preview for iTunes Connect
So I read I can use QuickTime to make a preview video for my app and upload to iTunes Connect but I need to have OSX 10.10.3 Yosemite. I currently use OSX 10.9.5 and am fearful of upgrading to 10.10.3 Yosemite because i'm afraid if I do so all my Xcode Projects files on my desktop will get deleted. What can I use to make a video of my app for preview besides OSX Yosemite's QuickTimes feature in simulator? Is there another feature i'm not noticing in Xcode 6.1's simulators that I can use for recording and editing a short video?
Replies
1
Boosts
0
Views
295
Activity
Jun ’15
Grid mode in SpriteKit scene editor! NEED!
Xcode 7 has great tools for creation game levels.But why we can't use grid-mode in scene editor?! It is a really important thing!For example, I need to fast creation of my platformer-style game.So I need to put sprites and nodes fast and CORRECTLY (to correct positions)...Without grid-mode this work is horrible, slow and not effective... Cause itvery difficult to put nodes together fast and to correct positions, without overlapping and without one-pixel hole.What you think about it? And I wonder what Apple think about it?
Replies
3
Boosts
0
Views
1k
Activity
Jun ’15
Watch Simulator not loading watchOS apps in 7 beta
I searched to see if anyone else is having this problem, but haven't seen anything yet. When I try to load a program into the XCode 7 watch simulator, I get a failed to load application error and the app never loads into the simulator. I have tried restarting everything to no avail. Does anyone know how I might reset things so I can get my apps to load on the simulator? Thanks!
Replies
6
Boosts
0
Views
2.6k
Activity
Jun ’15
Reply to Failable initializers for Classes
You could do it like thisfunc randomlyDangerousInt() throws -> Int { let potential = arc4random() if (potential == UInt32.max) {throw NSError(domain: overflow, code:0, userInfo: nil)} if (potential % 4 == 0) {throw NSError(domain: invalid, code:666, userInfo: nil)} else {return Int(potential)} } class TestClass { let x: Int let y: Int let z: Int init?() { var shouldFail = false do {x = try randomlyDangerousInt()} catch {shouldFail = true; x = 0} do {y = try randomlyDangerousInt()} catch {shouldFail = true; y = 0} do {z = try randomlyDangerousInt()} catch {shouldFail = true; z = 0} if (shouldFail) {return nil} } } let a = TestClass() let b = TestClass() let c = TestClass()Or, you could make your class a struct if that would work (and then can return nil at any point during initialization), or encapsulate parts of your class in a separate struct like this:struct CTCResources { let x: Int let y: Int let z: Int init?() { do { x = try randomlyDanger
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
XCode Interface Builder and Simulator basics
This is my first foray into iOS and using XCode development. After making a brisk start using iOS ToDo List tutorial...I have become stuck on following issues and cannot progress! Please help...How do I get different scenes to align in storyboard. I cant seem to drag the 3rd scene and align it to the other two. I have cleared all constraints.When creating Segues to link two scenes on canvas - the scenes are not on the full screen...How do I drag from on be scene to another AND scroll the screen at the same time?Utility area - How do we scroll further down to see content e.g. properties in Attributes Inspector? The frameworks at the bottom right of the screen seem to prevent this.iOS Simulator - Running the iOS introductory ToDo list tutorial - for some reason the table view controller starts in the middle of the screen and I cannot scroll up in the simulator.iOS Simulator - Navigation Controller's Navigation bar and the bar buttons don't show.
Replies
0
Boosts
0
Views
273
Activity
Jun ’15