xcode6

Provisioning profiles getting invalidated after refreshing in “Accounts” tab of Xcode

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 01:43:25
问题 In an unfortunately frustrating loop here. This issue started occurring in Xcode 5 about a month ago and I have just been dealing with it hoping that it would go away with Xcode 6 but I'm still seeing it happen in the current App store release of Xcode 6. When visiting the "Accounts" tab in Xcode, then tapping on an account and clicking the "refresh" button to download the provisioning profiles for that user, instead they all get invalidated. Then I have to go into the developer portal and

Xcode 6.1: UIViews disappearing in interface builder when adjusting frames

回眸只為那壹抹淺笑 提交于 2019-12-06 01:42:54
I'm fairly new to Interface Builder and I'm trying to practice it with a very simple view . Basically, I have 3 UIViews on my view controller . The problem I am having is that whenever I adjust the frame of 1 of the UIViews, the other 2 will disappear. Here is a short 7 second video of the problem: https://vine.co/v/OMlbMIdWMe5 If I run the app on my device, I only see 1 of the views (the 1 I was adjusting) - the other 2 remain hidden. I am using Xcode 6.1 . What could be causing this? ***EDIT: If I add 1 constraint to a view, it won't disappear when I readjust the frame of the other view.

Can not connect custom protocol delegate from storyboard in Xcode 6.1

大城市里の小女人 提交于 2019-12-06 01:13:11
I just upgraded my mac to 10.10 and Xcode to 6.1, found a strange thing which about storyboard, my case is using a swift project, can not connect custom protocol delegate from storyboard anymore. the old connected which comes with old version of Xcode is fine, but I can not connect any new delegate anymore. even I can not reconnect the old one once I removed the connected. Does anyone occur this situation ?? ============================== Updated ============================== View Class @objc public protocol VideoViewResizeDelegate { func shouldVideoViewResetLayout(videoView: GvVideoView) ->

Google Analytics not initialising in Swift

放肆的年华 提交于 2019-12-06 01:04:52
问题 My new swift app does not initialise Google Analytics for some reason. I created a bridging header in my project for all the GAnalytics files: #import "GAI.h" #import "GAIDictionaryBuilder.h" #import "GAIEcommerceFields.h" #import "GAIEcommerceProduct.h" #import "GAIEcommerceProductAction.h" #import "GAIEcommercePromotion.h" #import "GAIFields.h" #import "GAILogger.h" #import "GAITrackedViewController.h" #import "GAITracker.h" And this is part of my AppDelegate.swift file: func application

How to convert code AVFoundation objective c to Swift?

对着背影说爱祢 提交于 2019-12-06 00:37:52
问题 I am using AVFoundation in swift for take pictures but I can't convert any func lines of code from objective c to Swift. My func code is: - (void) capImage { //method to capture image from AVCaptureSession video feed AVCaptureConnection *videoConnection = nil; for (AVCaptureConnection *connection in stillImageOutput.connections) { for (AVCaptureInputPort *port in [connection inputPorts]) { if ([[port mediaType] isEqual:AVMediaTypeVideo] ) { videoConnection = connection; break; } } if

CLLocationmanager delegate method is not working in xcode6 [duplicate]

蹲街弑〆低调 提交于 2019-12-06 00:26:15
问题 This question already has answers here : Location Services not working in iOS 8 (26 answers) Closed 5 years ago . i am created new project in Xcode6 and added the old files to this project(old files is created in xcode5) ,But whats happening is everything working fine, but "didUpdateToLocation" delegate method is not calling, i also used "didUpdateLocations" delegate method but both are not working.Code i have used from old file but the core location framework has been added from xcode6 ,I

Different portrait/landscape views in storyboard and Swift

耗尽温柔 提交于 2019-12-06 00:17:31
问题 I'm using storyboard and Xcode 6 to design app views but I'm facing this issue: I want to assign different positions of subviews for portrait and landscape modes. For example: Since now I've achieved this programmatically with willRotateToInterfaceOrientation and status bar to get ipad orientation. With Xcode 6, iPhone layouts for portrait and landscape are different, but are the same for iPad (regular, regular). It's is possible to achieved those positions with constraints? 回答1: Yes, you can

How to lower the volume of music in swift?

点点圈 提交于 2019-12-05 23:42:22
问题 I am creating a SpriteKit Game with background music looping. The problem is that the music is too loud. How do I lower the volume? Here is the code I used to set up the music var backGroundMusic = AVAudioPlayer() var bgMusicUrl:NSURL = NSBundle.mainBundle().URLForResource("BackGround", withExtension: "wav") backGroundMusic = AVAudioPlayer(contentsOfURL:bgMusicUrl, error: nil) backGroundMusic.numberOfLoops = (-1) backGroundMusic.prepareToPlay() backGroundMusic.play() 回答1: Have you tried this?

adding cocoapod dependencies to a cocoa touch framework

一笑奈何 提交于 2019-12-05 23:29:11
问题 I’m trying to work out how to add cocoa pod dependencies to an iOS app that has an embedded cocoa touch framework. I have my podfile set up like this: link_with [‘TestApp’, ‘TestAppFramework’] platform :ios, '8.0' source 'https://github.com/CocoaPods/Specs.git' pod 'google-plus-ios-sdk', '~> 1.7' Then I add a view controller with a sign in button as per the instructions here: https://developers.google.com/+/mobile/ios/sign-in and everything compiles with no problems. If I then run the app it

Restkit/Restkit.h file not found Xcode 6.1

大兔子大兔子 提交于 2019-12-05 23:21:05
问题 I was working on Project in Xcode 6.1. It was working fine and all of sudden it prompted an error 'Restkit/Restkit.h file not found'. I'm getting error after changing Architectures from $(ARCHS_STANDARD_32_BIT) to Standard architectures (armv7,arm64) - $(ARCHS_STANDARD) which is recommended by Apple Check Link I have tried following approaches : 1.'Cleaning' project and rebuilding 2. Checked for missing framework in Target -> Build Phases 3. Fixed 'Framework Search Path' of Target 4. I have