Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to UDP broadcast not working on Thunderbolt Interface
Hello Quinn,many thanks for the information about using the IP_BOUND_IF.In our application software we have the same issue for the UDP broadcast as described by prashant_telangi We use an UDP broadcast message to a dedicated IP port to detect a specific device type in the network. This was working so far from MacOS 10.5 up to MacOS 10.10. With MacOS 10.11 it does no longer work.To analyze the issue I have created a small test program which I compile on MacOS 10.10 and run it on MacOS 10.11I start the test program with./testUdpBroadcast 10.0.0.88 255.255.255.255then the setsockopt for IP_BOUND_IF will not be used and if I start the test program with./testUdpBroadcast 10.0.0.88 255.255.255.255 en2then the setsockopt for IP_BOUND_IF will be used.For MacOS 10.10 both variants result in an UDP broadcast message being sent.For MacOS 10.11 both variants result in an error message sendto() failed: No route to host/* * Test program to test the UDP broadcast on MacOS 10.11. * build: * gcc -Wall testUdpBroadcast.c -o te
Oct ’15
Reply to On device watchOS debugging impossible
@Everyone,I'm seeing this problem on Xcode Version 7.0.1 (7A1001) with ios 9.0.2 (iphone 6plus) and 38mm watch Version 2.0 (13S344).I upgraded my devices this am and repaired the iphone and watch. I then tried to debug using my watch scheme. It workedonce and then consistently failed. Each time, the watchkitextension took a long time to connect and displayed a running message in Xcode window. However, the watch displayed spinning circles and never responded.Does anyone know if radars filed were fixed?
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Building TVOS .ipa from commandline?
I've downloaded Xcode 7.1 beta 3 and installed it. I can compile my .app fine in Xcode IDE, but I'm having trouble producing an .ipa via the commandline in order to set it up with our Jenkins CI system. Seems related to using appletvos as an -sdk. I am using the commandline tools that come with 7.1 beta 3. This is a cocoapods project, but I was getting the same error building Apple's TVML sample code without cocoapods.Tried using xcrun for import:Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild clean -sdk appletvos -configuration Release -workspace /path/to/myApp.xcworkspace -scheme myApp PRODUCT_BUNDLE_IDENTIFIER=com.testing.myapp PROVISIONING_PROFILE=My App TVOS Test CODE_SIGN_IDENTITY=My Identity CONFIGURATION_BUILD_DIR=/path/to/Build/Products/Release-iphoneos OTHER_CODE_SIGN_FLAGS=--keychain /Users/me/Library/Keychains/myuser.keychain /Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild -sdk appletvos -configuration Release -workspace /path/to/myApp.xcwork
3
0
2.0k
Oct ’15
Using Settings.app URL scheme
Hi all!We're going to let users launch Settings.app from our application, so is it possible to add URL scheme prefs to our application URL types?Is it private API or not? Will we get rejected in AppStore review for using that?let url = NSURL(string: prefs:root=Settings) UIApplication.sharedApplication().openURL(url!)
Topic: UI Frameworks SubTopic: UIKit Tags:
7
0
10k
Oct ’15
Swift 2/Xcode 7, NSInternalInconsistencyException', reason: 'Must translate autoResizing mask into constraints to have _setHostsLayoutEngin
Hi Apple,I am Using Swift 2 and Version 7.0.1.When i am navigating to TableView i am facing below error.**Error Below**ContactPLUS[1851:47611] *** Assertion failure in -[ContactPLUS.ResultCell _setHostsLayoutEngine:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/NSLayoutConstraint_UIKitAdditions.m:28962015-10-07 20:06:55.321 ContactPLUS[1851:47611] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.'--------------------------Code below--------------------------var resultCell: ResultCell!resultCell = tableView.dequeueReusableCellWithIdentifier(ResultCell, forIndexPath: indexPath) as! ResultCell I have upgraded to Xcode 7.0.1 and getting this error.Some of the solutions are suggesting to untick auto layout option but it is not good solution.i am attaching the image for the references.Can someone please siggest some solutions which works in Xcode 7.0.1 an
0
0
1.1k
Oct ’15
Reply to UI Testing Failure - App state is still not terminated
For our Jenkins build, we've been resetting the entire simulator between runs.export DEV_NAME=UITest5s xcrun simctl list devices | grep $DEV_NAME | awk '{print $1}' | xargs xcrun simctl delete xcrun simctl create $DEV_NAME 'iPhone 5s' '9.0' xcrun simctl erase $DEV_NAME xcodebuild -workspace your.xcworkspace -scheme UITests -sdk iphonesimulator9.0 -destination name=UITest5s testWe're still in the process of stress testing our Jenkins build, but with a single non-trivial UI test, we've gone through a hundred runs with 2 failures due to what look like some kind of build failure.
Oct ’15
Reply to xcode disappears
Is 'other drive' your current boot drive or not?What happens if you abandon the MAS install scheme and manually download via https://developer.apple.com/downloads/...then mount that image and drag Xcode to your choice of location?
Oct ’15
Reply to How to explain this "inconsistency" of parameter lists being tuples
The signatures should be considered to match, resulting in an invalid redeclaration.I don't think people realistically need both variants. Do you?I do think that we should be able to translate between tuples and not-tuples willy-nilly, in order to reuse common parameter lists with no friction. This is one of the ways that tuples have stopped me from having to create too many structs.If I could define the typealiases in my protocols, and not have to copy-paste it across my implementors instead, and then use the copy-pasted signature in the protocol itself, that would be pleasant.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
Reply to Using Settings.app URL scheme
I'm not a Core Location expert but it is my understanding that your app receives the Location option under its Settings entry because it has, at some point, called one of the location APIs. This was added in iOS 8 - previously the location settings for all apps could only be configured from the Privacy settings.We know about that, but we want to open general settings instead of apllication settings.I'm afraid that there is not a documented URL scheme to do that. You should describe your use case in an enhancement request so that such a URL scheme can be considered for inclusion in a future version of the iOS SDK.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’15
Absurdly Simple Build Question
Forgive the simple question, but I'm completely stumped. I think I understand the notion of build schemes, and I think I understand the Build For... options (Running, Testing, Profiling). But, I can't for the life of me figure out what the menu option Product -> Build does. I've searched online until I'm blue in the face and have turned up everything except the answer to this simple question. I can't figure out if it builds every configuration or only most recent configuration, if it essentially executes Build For... for one of the actions, or what it does.Can anyone tell me, what exactly happens when you choose the Build menu option? Thanks!
2
0
291
Oct ’15
Reply to Absurdly Simple Build Question
The Build command builds all the targets in the currently selected scheme. It will also build all actions (Analyze/Test/Run/Profile/Archive) whose checkmarks are selected (see the Build item in the left column of the Edit Scheme dialog). Note the checkbox at top Parallelize Build, this allows Xcode to build your project much faser since it can build more than one action at a time. After making a major change and building, later builds may be faster and some parts won't need to be re-built.The Build For option can be used if a parallell build would take a lot of time and you just want to do a partial build to, for example, do an Analyze.
Oct ’15
Reply to Proposal: transform Obj-C methods that return values by reference into tuple returns
Objective-C has naming conventions that are used in a lot of cases with by-reference parameters (getFoo:, fooAndReturnBar:, etc.), so I'd expect a lot of them to translate fairly naturally (C APIs, of course, don't name anything at all, so they're going to be equally unclear before and after). If there are cases that end up reading badly, I suppose we could do something like extend the out keyword with a parameter that allows it to be given a different name in Swift, like so:- (NSString *)foo:(out(bar) NSString **)bar; to: func foo() -> (String, bar: String)We should see what kinds of badly-reading constructions we can find in the Cocoa API first, though, before deciding whether additions like this are necessary. Do you have any examples?
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
Reply to UDP broadcast not working on Thunderbolt Interface
Hello Quinn,many thanks for the information about using the IP_BOUND_IF.In our application software we have the same issue for the UDP broadcast as described by prashant_telangi We use an UDP broadcast message to a dedicated IP port to detect a specific device type in the network. This was working so far from MacOS 10.5 up to MacOS 10.10. With MacOS 10.11 it does no longer work.To analyze the issue I have created a small test program which I compile on MacOS 10.10 and run it on MacOS 10.11I start the test program with./testUdpBroadcast 10.0.0.88 255.255.255.255then the setsockopt for IP_BOUND_IF will not be used and if I start the test program with./testUdpBroadcast 10.0.0.88 255.255.255.255 en2then the setsockopt for IP_BOUND_IF will be used.For MacOS 10.10 both variants result in an UDP broadcast message being sent.For MacOS 10.11 both variants result in an error message sendto() failed: No route to host/* * Test program to test the UDP broadcast on MacOS 10.11. * build: * gcc -Wall testUdpBroadcast.c -o te
Replies
Boosts
Views
Activity
Oct ’15
Reply to On device watchOS debugging impossible
@Everyone,I'm seeing this problem on Xcode Version 7.0.1 (7A1001) with ios 9.0.2 (iphone 6plus) and 38mm watch Version 2.0 (13S344).I upgraded my devices this am and repaired the iphone and watch. I then tried to debug using my watch scheme. It workedonce and then consistently failed. Each time, the watchkitextension took a long time to connect and displayed a running message in Xcode window. However, the watch displayed spinning circles and never responded.Does anyone know if radars filed were fixed?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Building TVOS .ipa from commandline?
I've downloaded Xcode 7.1 beta 3 and installed it. I can compile my .app fine in Xcode IDE, but I'm having trouble producing an .ipa via the commandline in order to set it up with our Jenkins CI system. Seems related to using appletvos as an -sdk. I am using the commandline tools that come with 7.1 beta 3. This is a cocoapods project, but I was getting the same error building Apple's TVML sample code without cocoapods.Tried using xcrun for import:Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild clean -sdk appletvos -configuration Release -workspace /path/to/myApp.xcworkspace -scheme myApp PRODUCT_BUNDLE_IDENTIFIER=com.testing.myapp PROVISIONING_PROFILE=My App TVOS Test CODE_SIGN_IDENTITY=My Identity CONFIGURATION_BUILD_DIR=/path/to/Build/Products/Release-iphoneos OTHER_CODE_SIGN_FLAGS=--keychain /Users/me/Library/Keychains/myuser.keychain /Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild -sdk appletvos -configuration Release -workspace /path/to/myApp.xcwork
Replies
3
Boosts
0
Views
2.0k
Activity
Oct ’15
Using Settings.app URL scheme
Hi all!We're going to let users launch Settings.app from our application, so is it possible to add URL scheme prefs to our application URL types?Is it private API or not? Will we get rejected in AppStore review for using that?let url = NSURL(string: prefs:root=Settings) UIApplication.sharedApplication().openURL(url!)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
7
Boosts
0
Views
10k
Activity
Oct ’15
Reply to Using Settings.app URL scheme
Have you actually tried that URL scheme on the most recent versions of iOS, or are you dealing with second hand documentation?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’15
Swift 2/Xcode 7, NSInternalInconsistencyException', reason: 'Must translate autoResizing mask into constraints to have _setHostsLayoutEngin
Hi Apple,I am Using Swift 2 and Version 7.0.1.When i am navigating to TableView i am facing below error.**Error Below**ContactPLUS[1851:47611] *** Assertion failure in -[ContactPLUS.ResultCell _setHostsLayoutEngine:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/NSLayoutConstraint_UIKitAdditions.m:28962015-10-07 20:06:55.321 ContactPLUS[1851:47611] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.'--------------------------Code below--------------------------var resultCell: ResultCell!resultCell = tableView.dequeueReusableCellWithIdentifier(ResultCell, forIndexPath: indexPath) as! ResultCell I have upgraded to Xcode 7.0.1 and getting this error.Some of the solutions are suggesting to untick auto layout option but it is not good solution.i am attaching the image for the references.Can someone please siggest some solutions which works in Xcode 7.0.1 an
Replies
0
Boosts
0
Views
1.1k
Activity
Oct ’15
Reply to UI Testing Failure - App state is still not terminated
For our Jenkins build, we've been resetting the entire simulator between runs.export DEV_NAME=UITest5s xcrun simctl list devices | grep $DEV_NAME | awk '{print $1}' | xargs xcrun simctl delete xcrun simctl create $DEV_NAME 'iPhone 5s' '9.0' xcrun simctl erase $DEV_NAME xcodebuild -workspace your.xcworkspace -scheme UITests -sdk iphonesimulator9.0 -destination name=UITest5s testWe're still in the process of stress testing our Jenkins build, but with a single non-trivial UI test, we've gone through a hundred runs with 2 failures due to what look like some kind of build failure.
Replies
Boosts
Views
Activity
Oct ’15
Reply to Homekit RS232 Commands
If you want to control accessories which are not HomeKit compatible, you need a HomeKit bridge which translates commands from the HomeKit Accessory Protocol (HAP) to the RS232 protocol.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to xcode disappears
Is 'other drive' your current boot drive or not?What happens if you abandon the MAS install scheme and manually download via https://developer.apple.com/downloads/...then mount that image and drag Xcode to your choice of location?
Replies
Boosts
Views
Activity
Oct ’15
Reply to How to explain this "inconsistency" of parameter lists being tuples
The signatures should be considered to match, resulting in an invalid redeclaration.I don't think people realistically need both variants. Do you?I do think that we should be able to translate between tuples and not-tuples willy-nilly, in order to reuse common parameter lists with no friction. This is one of the ways that tuples have stopped me from having to create too many structs.If I could define the typealiases in my protocols, and not have to copy-paste it across my implementors instead, and then use the copy-pasted signature in the protocol itself, that would be pleasant.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to Xcode 7.0.1 install won't download iOS9 Documentation
>I've now installed the (registered developer) release version of XCode 7.0.1 over the prior betasNot sure what that means. The betas are normally installed with a different naming scheme. Release versions normally install over themselves.Or have you been juggling names for both? If so, that may have something to do w/the current IDE state/issues.
Replies
Boosts
Views
Activity
Oct ’15
Reply to Using Settings.app URL scheme
I'm not a Core Location expert but it is my understanding that your app receives the Location option under its Settings entry because it has, at some point, called one of the location APIs. This was added in iOS 8 - previously the location settings for all apps could only be configured from the Privacy settings.We know about that, but we want to open general settings instead of apllication settings.I'm afraid that there is not a documented URL scheme to do that. You should describe your use case in an enhancement request so that such a URL scheme can be considered for inclusion in a future version of the iOS SDK.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’15
Absurdly Simple Build Question
Forgive the simple question, but I'm completely stumped. I think I understand the notion of build schemes, and I think I understand the Build For... options (Running, Testing, Profiling). But, I can't for the life of me figure out what the menu option Product -> Build does. I've searched online until I'm blue in the face and have turned up everything except the answer to this simple question. I can't figure out if it builds every configuration or only most recent configuration, if it essentially executes Build For... for one of the actions, or what it does.Can anyone tell me, what exactly happens when you choose the Build menu option? Thanks!
Replies
2
Boosts
0
Views
291
Activity
Oct ’15
Reply to Absurdly Simple Build Question
The Build command builds all the targets in the currently selected scheme. It will also build all actions (Analyze/Test/Run/Profile/Archive) whose checkmarks are selected (see the Build item in the left column of the Edit Scheme dialog). Note the checkbox at top Parallelize Build, this allows Xcode to build your project much faser since it can build more than one action at a time. After making a major change and building, later builds may be faster and some parts won't need to be re-built.The Build For option can be used if a parallell build would take a lot of time and you just want to do a partial build to, for example, do an Analyze.
Replies
Boosts
Views
Activity
Oct ’15
Reply to Proposal: transform Obj-C methods that return values by reference into tuple returns
Objective-C has naming conventions that are used in a lot of cases with by-reference parameters (getFoo:, fooAndReturnBar:, etc.), so I'd expect a lot of them to translate fairly naturally (C APIs, of course, don't name anything at all, so they're going to be equally unclear before and after). If there are cases that end up reading badly, I suppose we could do something like extend the out keyword with a parameter that allows it to be given a different name in Swift, like so:- (NSString *)foo:(out(bar) NSString **)bar; to: func foo() -> (String, bar: String)We should see what kinds of badly-reading constructions we can find in the Cocoa API first, though, before deciding whether additions like this are necessary. Do you have any examples?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15