Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Localization native development region (CFBundleDevelopmentRegion) not honored by Xcode
Hello!When creating a new CocoaTouch/iOS project Xcode sets the development language to english. As we have usually clients from Germany I then add German (and maybe more languages) and change the development language to Germany. So I would expect exported language files will use german as reference language.But on General tab of project settings it still reads Englisch - Development Language. And when I do Export for Localization... Xcode only gives me the following to optinos:- Existing translation with German- Development Language OnlyThe former one results in a .xliff file that has en as source-language and de as target-language set. The latter produces a .xliff file with no target-language and source-language en.Steps to Reproduce:1. Setup a new project in Xcode2. Add a new languages (e.g. German and French) in projects General tab3. Select Info.plist and choose one (e.g. Germany) of the newly added languages as Localization native development region4. Go back to projects General tab and see wha
0
0
4.2k
Sep ’15
Reply to tvOS: Address Sanitizer Detected
It's a new XCode 7 feature for testing. You may have had it enabled by default or submitted a build that had it.See https://developer.apple.com/library/prerelease/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_7_0.htmlAddress sanitizer. Xcode 7 can build your app with instrumentation designed to catch and debug memory corruption using the address sanitizer.Objective-C and C code is susceptible to memory corruption issues such as stack and heap buffer overruns and use-after-free issues. When these memory violations occur, your app can crash unpredictably or display odd behavior. Memory corruption issues are difficult to track down because the crashes and odd behavior are often hard to reproduce, and the cause can be far from the origin of the problem.You enable the address sanitizer in the build scheme. Once enabled, added instrumentation is built into the app to catch memory violations immediately, enabling you to inspect the problem right at the place where it occurs. Other
Sep ’15
Reply to Request of help - blocked student
· A class Promotion: she will have for only attribute students' list. You will implement a builder without parameters who will initialize your vacuous picture. You will define of more an method ajouterEtudiant(etudiant: Etudiant) which will add a student in your picture and a method rechercherEtudiant (nom: String, prone: String) - > Bool who will allow to know if yes or not the student asked in parameter is present in our picture. Finally, you will define a last method affichePromotion() which will allow to post the students of the whole promotion.It might be better to post the original French rather than running it through Google Translate; I'm having trouble parsing the above.Anyway, looking at your code, it looks like your liste variable is an array of Etudiants, so your mot variable in your for loop is going to be an Etudiant. You're then using Etudiant on the left hand side of an == operator, which won't work since Etudiant isn't Equatable; however, the larger problem is that the thing you'r
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to 10.11 GM Hangs after slow boot & login
That produced:.3777EC82-C836-4258-BF9C-E52ABEDC0FD9.Macrovision11.03.005.uct2.YQvQ8ywLRyM=.oQ9hxrAadmAdobeApertureApp StoreAppleApplePushServiceBarkBootCampCamel AudioCisco SystemsCleverFilesCocktailCopy AgentCouponsCrashReporterDAZ 3DDeveloperDigidesignDriveGeniusEchospinFLEXnet PublisherFinal Cut StudioGPGToolsGarageBandGoogle SketchUp 8Hewlett-PackardInterMapper SettingsKensingtonLogicMacromediaMakeMusicMicrosoftMindVisionMozillaNative InstrumentsNetServicesObjective DevelopmentOraclePACE Anti-PiracyParagon NTFS for Mac OS XProAppsRaynerResearchSoftRoxioSIMBLScript EditorStreamWatcherStuffItSubmitDiagInfoSynthetic Aperture Adobe CS5 BundleTechspansionTiVoTunnelblickViscosityWD SmartWare ServicesWDSmartWareWesternDigitalappsolutecom.apple.TCCffmpegXiDVDiLifeiLifeMediaBrowseriLifeSlideshowiMovieiPhotoiStat Menus 5iTunesiWork '08iWork '09regid.1986-12.com.adobeALF.kextAMD2400Controller.kextAMD2600Controller.kextAMD3800Controller.kextAMD4600Controller.kextAMD4800Controller.kextAMD5000Controller.kextAMD6000Cont
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
After gesture finishes, my variables get reset to 0
@IBAction func OnRightSwipeGesture(sender: UIPanGestureRecognizer) { let translated = sender.translationInView(self.view); let diffTrans = (translated.y - previouslyTranslated.y) / 75; sum += diffTrans; print(sum); colorWheel.transform = CGAffineTransformMakeRotation(sum); previouslyTranslated = translated; }In this code, I'm using a swipe gesture to turn a wheel. It takes the difference in movement between calls and adds them to sum, which then becomes the rotation of the wheel. The problems is, however, that once I have taken my finger off the screen sum gets reset to 0 on the next gesture call even though its a variable declared at the top of the class. I'm somewhat new to swift and in other languages that's called an instance variable. Do they not behave the same way in swift?
2
0
397
Oct ’15
Reply to After gesture finishes, my variables get reset to 0
Yes, instance variables (aka stored properties) work like you would expect them to, so there must be something else going on.Do you you reset 'previouslyTranslated' to 0 at the end of the drag/pan (or at the beginning of a new drag/pan)?If not, that would make it appear as if 'sum' were being reset to 0, since your first 'diffTrans' would be the result of subtracting the whole amount of the previous drag/pan from the first translation of the new drag/pan.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
Reply to After gesture finishes, my variables get reset to 0
UIPanGestureRecognizer's translationInView returns difference from the starting pan location. So when gesture recognizer's state is Began, it returns zero. Maybe you should set previouslyTranslated to translated value when state is Began:@IBAction func OnRightSwipeGesture(sender: UIPanGestureRecognizer) { let translated = sender.translationInView(self.view) if sender.state == .Began { previouslyTranslated = translated } let diffTrans = (translated.y - previouslyTranslated.y) / 75 sum += diffTrans print(sum); colorWheel.transform = CGAffineTransformMakeRotation(sum) previouslyTranslated = translated }E: Now I realized I'm repeating what LCS said.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
Reply to "This Helped Me" not working?
I suspect any existing JIVE Software forum docs are either windows or unix-centric. No $ in the contract for OS X tweaks.But in typical Apple fashion, users are left to discover for themselves and/or rely on each other, third party blogs, etc. to translate what does/doesn't do what.Used to be on the public forums mods would react to users asking for threads to be marked solved as a sort of self-promotion. I used to do it on the old forums to help shed light on the process as I think it can make it easier to know what is hopefully a solution vs. having to scan the thread and guess. But again, that means users doing what should be a mods job, and I don't see (nor expect) any official/full-time staffer working here towards that goal, which I conclude is just another budget decision.
Oct ’15
Add user defined preprocessor macro value from shell script
We have an app that we want uploaded to a site with a different app id based on the the environment it's being built in. In the project we have a Release preprocessor macro set to MY_CONFIGURATION=$(MY_CONFIGURATION) and we set a default value to 3 in the user-defined settings. In our define where we assign the app id string value based off the macro define, we also have the fallback that if the value is not defined, use the value 1. The problem is when we build off Jenkins, the script assigned value (2) is overwritten by the default value from the user-defined settings (3).Here's the line we are using in the build.sh filexcodebuild -scheme ${SCHEME} -sdk ${SDK} -destination generic/platform=iOS CODE_SIGN_IDENTITY=${PROFILE} MY_CONFIGURATION=${BUILD_ENV} buildI know the correct value is being placed, as the console output from Jenkins shows the following10:58:46 + xcodebuild -scheme MGO -sdk iphoneos9.0 -destination generic/platform=iOS 'CODE_SIGN_IDENTITY=X' MY_CONFIGURATION=2 buil
0
0
2.5k
Oct ’15
Reply to Testing openURL to cold started app
After some more work, I've found that this can be accomplished with mixed success.Run the app from Xcode to install it on your device and then stop it from Xcode.Force quit the app from the app switcher UI on the device.Navigate to the scheme for the project in Xcode. Under the Run section's Info tab, there is a radio button for Wait for executable to be launched. Make sure this is checked instead of the Automatically option.Run the app from Xcode. It will not open on the device, but the debugger will wait for it to open and then it will attach to it.So, while the debugger is waiting, you can open an app like Notes where you have a deep link and touch the link to cause the app to open. If you have breakpoints set somewhere, like in application:didFinishLaunchingWithOptions:, you can follow the startup process.Issues I've found so far:- NSLog statements do not output to the console, so if you didn't have any breakpoints set, it would appear as though the debugger had not attached to the app at all.- I
Oct ’15
How to test watchkit app together with paired iOS app?
I'm trying to test an iOS app with its paired WatchKit app (iOS 9 + WatchOS2). So far I know how to test them one by one:1) By testing the scheme WKMyApp using My iPhone + My Apple Watch I can test out if the WatchKit App is running well on my watch.2) By testing the scheme MyApp using My iPhone I can test out if the iOS app is running well on my phone.However, since I'm trying to use the new WatchConnectivity framework to realize exchange of a file between my phone and the watch, how can I test them at the same time? Can I test them together meanwhile being able to see log from both apps?Thank you!Wei
2
0
1.5k
Oct ’15
Localization native development region (CFBundleDevelopmentRegion) not honored by Xcode
Hello!When creating a new CocoaTouch/iOS project Xcode sets the development language to english. As we have usually clients from Germany I then add German (and maybe more languages) and change the development language to Germany. So I would expect exported language files will use german as reference language.But on General tab of project settings it still reads Englisch - Development Language. And when I do Export for Localization... Xcode only gives me the following to optinos:- Existing translation with German- Development Language OnlyThe former one results in a .xliff file that has en as source-language and de as target-language set. The latter produces a .xliff file with no target-language and source-language en.Steps to Reproduce:1. Setup a new project in Xcode2. Add a new languages (e.g. German and French) in projects General tab3. Select Info.plist and choose one (e.g. Germany) of the newly added languages as Localization native development region4. Go back to projects General tab and see wha
Replies
0
Boosts
0
Views
4.2k
Activity
Sep ’15
Reply to tvOS: Address Sanitizer Detected
It's a new XCode 7 feature for testing. You may have had it enabled by default or submitted a build that had it.See https://developer.apple.com/library/prerelease/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_7_0.htmlAddress sanitizer. Xcode 7 can build your app with instrumentation designed to catch and debug memory corruption using the address sanitizer.Objective-C and C code is susceptible to memory corruption issues such as stack and heap buffer overruns and use-after-free issues. When these memory violations occur, your app can crash unpredictably or display odd behavior. Memory corruption issues are difficult to track down because the crashes and odd behavior are often hard to reproduce, and the cause can be far from the origin of the problem.You enable the address sanitizer in the build scheme. Once enabled, added instrumentation is built into the app to catch memory violations immediately, enabling you to inspect the problem right at the place where it occurs. Other
Replies
Boosts
Views
Activity
Sep ’15
Reply to Request of help - blocked student
· A class Promotion: she will have for only attribute students' list. You will implement a builder without parameters who will initialize your vacuous picture. You will define of more an method ajouterEtudiant(etudiant: Etudiant) which will add a student in your picture and a method rechercherEtudiant (nom: String, prone: String) - > Bool who will allow to know if yes or not the student asked in parameter is present in our picture. Finally, you will define a last method affichePromotion() which will allow to post the students of the whole promotion.It might be better to post the original French rather than running it through Google Translate; I'm having trouble parsing the above.Anyway, looking at your code, it looks like your liste variable is an array of Etudiants, so your mot variable in your for loop is going to be an Etudiant. You're then using Etudiant on the left hand side of an == operator, which won't work since Etudiant isn't Equatable; however, the larger problem is that the thing you'r
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to iOS9 using custom URL schemes to deep link
+1Also there is no mention to URL Schemes changes in iOS9 at https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-9.0/index.html#//apple_ref/doc/uid/TP40016202How could you deprecate something that useful without providing a new alternative Apple?
Replies
Boosts
Views
Activity
Sep ’15
Reply to 10.11 GM Hangs after slow boot & login
That produced:.3777EC82-C836-4258-BF9C-E52ABEDC0FD9.Macrovision11.03.005.uct2.YQvQ8ywLRyM=.oQ9hxrAadmAdobeApertureApp StoreAppleApplePushServiceBarkBootCampCamel AudioCisco SystemsCleverFilesCocktailCopy AgentCouponsCrashReporterDAZ 3DDeveloperDigidesignDriveGeniusEchospinFLEXnet PublisherFinal Cut StudioGPGToolsGarageBandGoogle SketchUp 8Hewlett-PackardInterMapper SettingsKensingtonLogicMacromediaMakeMusicMicrosoftMindVisionMozillaNative InstrumentsNetServicesObjective DevelopmentOraclePACE Anti-PiracyParagon NTFS for Mac OS XProAppsRaynerResearchSoftRoxioSIMBLScript EditorStreamWatcherStuffItSubmitDiagInfoSynthetic Aperture Adobe CS5 BundleTechspansionTiVoTunnelblickViscosityWD SmartWare ServicesWDSmartWareWesternDigitalappsolutecom.apple.TCCffmpegXiDVDiLifeiLifeMediaBrowseriLifeSlideshowiMovieiPhotoiStat Menus 5iTunesiWork '08iWork '09regid.1986-12.com.adobeALF.kextAMD2400Controller.kextAMD2600Controller.kextAMD3800Controller.kextAMD4600Controller.kextAMD4800Controller.kextAMD5000Controller.kextAMD6000Cont
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
After gesture finishes, my variables get reset to 0
@IBAction func OnRightSwipeGesture(sender: UIPanGestureRecognizer) { let translated = sender.translationInView(self.view); let diffTrans = (translated.y - previouslyTranslated.y) / 75; sum += diffTrans; print(sum); colorWheel.transform = CGAffineTransformMakeRotation(sum); previouslyTranslated = translated; }In this code, I'm using a swipe gesture to turn a wheel. It takes the difference in movement between calls and adds them to sum, which then becomes the rotation of the wheel. The problems is, however, that once I have taken my finger off the screen sum gets reset to 0 on the next gesture call even though its a variable declared at the top of the class. I'm somewhat new to swift and in other languages that's called an instance variable. Do they not behave the same way in swift?
Replies
2
Boosts
0
Views
397
Activity
Oct ’15
Reply to After gesture finishes, my variables get reset to 0
Yes, instance variables (aka stored properties) work like you would expect them to, so there must be something else going on.Do you you reset 'previouslyTranslated' to 0 at the end of the drag/pan (or at the beginning of a new drag/pan)?If not, that would make it appear as if 'sum' were being reset to 0, since your first 'diffTrans' would be the result of subtracting the whole amount of the previous drag/pan from the first translation of the new drag/pan.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to After gesture finishes, my variables get reset to 0
UIPanGestureRecognizer's translationInView returns difference from the starting pan location. So when gesture recognizer's state is Began, it returns zero. Maybe you should set previouslyTranslated to translated value when state is Began:@IBAction func OnRightSwipeGesture(sender: UIPanGestureRecognizer) { let translated = sender.translationInView(self.view) if sender.state == .Began { previouslyTranslated = translated } let diffTrans = (translated.y - previouslyTranslated.y) / 75 sum += diffTrans print(sum); colorWheel.transform = CGAffineTransformMakeRotation(sum) previouslyTranslated = translated }E: Now I realized I'm repeating what LCS said.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to "This Helped Me" not working?
I suspect any existing JIVE Software forum docs are either windows or unix-centric. No $ in the contract for OS X tweaks.But in typical Apple fashion, users are left to discover for themselves and/or rely on each other, third party blogs, etc. to translate what does/doesn't do what.Used to be on the public forums mods would react to users asking for threads to be marked solved as a sort of self-promotion. I used to do it on the old forums to help shed light on the process as I think it can make it easier to know what is hopefully a solution vs. having to scan the thread and guess. But again, that means users doing what should be a mods job, and I don't see (nor expect) any official/full-time staffer working here towards that goal, which I conclude is just another budget decision.
Replies
Boosts
Views
Activity
Oct ’15
Add user defined preprocessor macro value from shell script
We have an app that we want uploaded to a site with a different app id based on the the environment it's being built in. In the project we have a Release preprocessor macro set to MY_CONFIGURATION=$(MY_CONFIGURATION) and we set a default value to 3 in the user-defined settings. In our define where we assign the app id string value based off the macro define, we also have the fallback that if the value is not defined, use the value 1. The problem is when we build off Jenkins, the script assigned value (2) is overwritten by the default value from the user-defined settings (3).Here's the line we are using in the build.sh filexcodebuild -scheme ${SCHEME} -sdk ${SDK} -destination generic/platform=iOS CODE_SIGN_IDENTITY=${PROFILE} MY_CONFIGURATION=${BUILD_ENV} buildI know the correct value is being placed, as the console output from Jenkins shows the following10:58:46 + xcodebuild -scheme MGO -sdk iphoneos9.0 -destination generic/platform=iOS 'CODE_SIGN_IDENTITY=X' MY_CONFIGURATION=2 buil
Replies
0
Boosts
0
Views
2.5k
Activity
Oct ’15
Reply to dyld_fatal_error on xcode 7 beta
This works for me:In XCode click on the scheme (two buttons right from the run button)-> Klick on edit scheme-> Choose run/Debug-> Choose Diagnostics-> Look at Memory ManagementIf Enable Guard Malloc ist enabled, disable it.
Replies
Boosts
Views
Activity
Oct ’15
Reply to Start Developing iOS Apps Today (Objective-C)
same here...i find it somewhat strange, especially when the guide is available in Chinese (Google translate to figure this out).what are the chances for apple to reply on that ? is there any time estimation from your experience ?
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to English always being loaded.
Please check Edit Scheme -> Run Debug -> Options -> Application Language / Region.Cheers.
Replies
Boosts
Views
Activity
Oct ’15
Reply to Testing openURL to cold started app
After some more work, I've found that this can be accomplished with mixed success.Run the app from Xcode to install it on your device and then stop it from Xcode.Force quit the app from the app switcher UI on the device.Navigate to the scheme for the project in Xcode. Under the Run section's Info tab, there is a radio button for Wait for executable to be launched. Make sure this is checked instead of the Automatically option.Run the app from Xcode. It will not open on the device, but the debugger will wait for it to open and then it will attach to it.So, while the debugger is waiting, you can open an app like Notes where you have a deep link and touch the link to cause the app to open. If you have breakpoints set somewhere, like in application:didFinishLaunchingWithOptions:, you can follow the startup process.Issues I've found so far:- NSLog statements do not output to the console, so if you didn't have any breakpoints set, it would appear as though the debugger had not attached to the app at all.- I
Replies
Boosts
Views
Activity
Oct ’15
How to test watchkit app together with paired iOS app?
I'm trying to test an iOS app with its paired WatchKit app (iOS 9 + WatchOS2). So far I know how to test them one by one:1) By testing the scheme WKMyApp using My iPhone + My Apple Watch I can test out if the WatchKit App is running well on my watch.2) By testing the scheme MyApp using My iPhone I can test out if the iOS app is running well on my phone.However, since I'm trying to use the new WatchConnectivity framework to realize exchange of a file between my phone and the watch, how can I test them at the same time? Can I test them together meanwhile being able to see log from both apps?Thank you!Wei
Replies
2
Boosts
0
Views
1.5k
Activity
Oct ’15