Search results for

Xcode

92,311 results found

Post

Replies

Boosts

Views

Activity

Reply to Can't find webview?
Which version of xCode? If you mean xCode 7, stop. Get a copy of the release version of xCode 6.3or even a copy of the 6.4 beta. Lot's of things have changed between xCode 6 and 7 and most likelyyour tutorials are pre xCode 6 anyway. There are different ways of creating webviews depending onyour deployment targets and which version of xCode you're using. Haven't looked myself but, if it's still there, it will be in the controls section after you've already created your utility/single-view app orwhatever. You'd drag the control onto your storyboard.
Jun ’15
Reply to SIMD Vector Operations in Swift 2
You can now import simd to get access to the same functionality that C/C++/ObjC programs get via #include <simd/simd.h>The Swift syntax seems to be similar to the C++ syntax, except that some functions and initializers have named arguments:import simd let vec1 = float4(1.0, 2.0, 3.0, 4.0) let length1 = length(vec1) let vec2 = float4(1.0, 1.0, -1.0, -1.0) let dotProduct = dot(vec1, vec2) let elementwiseMultiplication = vec1*vec2 let matrix1 = float4x4([[0,1,1,1], [-1,2,0,3], [-3,0,-4,5],[-1,-1,2,2]]) let matrix2 = float4x4(diagonal:[1,2,3,4]) let matrix3 = matrix1 + matrix2 let matrix4 = matrix3.transposeI haven't found any Swift documentation yet (aside from option-clicking a symbol to get the popup description or command-clicking to get Xcode's pseudo-header thing), but through trial and error (and Xcode's autocompletion) it's pretty easy to figure out how the C++ version maps into Swift.Also, it looks like it's not done yet. while simd.vector and simd.matrix work fine, simd.logic doe
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
XCode 7 Beta DMG corrupt
I have downloaded it now four times, three different browers two different machines and I'm everytime I try to mount the DMG it says the disk image is corrupt. I've tried to repair it but I'm unable to unlock the DMG for DiskWarrior to repair it. I've tried a few other options to repair the DMG via the command-lind and all fail with a image data corrupted message. Obviosuly people have downloaded it. Any idea of why I'm having the issue?
2
0
575
Jun ’15
for case enum syntax
In the What's New in Swift video, the following pattern is shown on a slide:for case .MyEnumCase (let value) in enumValuesBut tests in Xcode 7 show that this sort of thing won't compile (with suitable declaration of a MyEnum that has a .MyEnumCase with associated value, and setting enumValues to a [MyEnum] value. The simpler syntax:for case .MyEnumCase in enumValuesdoes compile, but of course doesn't give access to the associated value. Anyone know if this is merely a compiler defect, or if the actual syntax is something different?
4
0
1.6k
Jun ’15
Reply to How do I link against .tbd files in Xcode 7?
This is a known issue in the Xcode 7 beta.To work around this issue for now, please:Delete all references to .tbd files from either your linked libraries phase, or from the copied bundle resources phase (where they sometimes will be added).Add the library you want to link manually to the Other Linker Flags build settings, by adding the argument: -l<library_name> for each library you want to link (for example, add -lsqlite3 (without quotes)).For those who are curious, the .tbd files are new text-based stub libraries, that provide a much more compact version of the stub libraries for use in the SDK, and help to significantly reduce its download size.
Jun ’15
Apple watch simulator no longer runs after updating to Xcode 6.3.2 (6D2105)
I've updated my Xcode to Xcode 6.3.2 (6D2105). Now all my existing Apple Watch projects no longer open the Apple Watch simulator (but code runs).I've tried creeating a clean project as well and added the Watch target. The WatchKit App, Notifcation, and Glances targets run, but the Apple Watch simulator doesn't show up.Only the iPhone target sim appears (and runs when that target is selected).I'm I missing some new setting to configure the sim to appear?PS: Running iPhone 6 / iOS 8.3 (12F69) sim
1
0
755
Jun ’15
Reply to SIMD Vector Operations in Swift 2
I get two compile time errors when trying to import simd: __swift_FORCE_LOAD_$_swiftDarwin, referenced from:clang: error: linker command failed with exit code 1 (use -v to see invocation)Undefined symbols for architecture x86_64: __swift_FORCE_LOAD_$_swiftDarwin, referenced from: __swift_FORCE_LOAD_$_swiftDarwin_$_simd in libswiftsimd.a(simd.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftDarwin_$_simd)ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)Xcode 7, OS X 10.10.3
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Swift 2.0 behaved weird when fetching data using NSData (Playground give different result from the Actual App with same Code)
So I just downloaded Xcode 7 and start playing with Swift 2I use one of my previous project and also a playground for testing new syntaxes.However I get into trouble when I use this line of code to fetch raw data from an free online apilet dataSource = NSData(contentsOfURL: NSURL(string: http://api.openweathermap.org/data/2.5/weather?id=5375480)!)Inside playground, the code ran perfect and I get excactly what I what.However I got nil for the dataSource everytime when I build the App on iOS 9b1 or either simulator, since the class is excactly same, I just can't understant why this happened.I try the product I built from my previous project using Xcode 6.3.2 with Swift 1.2 Syntax which is running on the same iPhone with iOS 9b1, I still get perfect result back, therefore it shows that it's nothing to do with hardware settings or API problems.Since I'm not sure if either I have missed something is important or it just an other early-pre-release bug cause this problem, please let me know if you
1
0
943
Jun ’15
Reply to app crashes during the review
Post the crash log. (the header and crashed thread, at least - don't need the long list of binaries)If it is symbolicated, it should contain the source file and line number if any of your code is involved in the crash. If it's not symbolicated, drag it into the Device Logs view in Xcode's Devices window when you have a device connected. Xcode should then symbolicate it.
Jun ’15
Reply to error when fetching profile from member center
I solved the problem.First of all remove all signing accounts from Xcode > Preferences > Accounts and close Xcode. Then check in the member center of https://developer.apple.com for the accounts you want to use for signing, if the latest agreements are signed/reviewed by the account owner. For me it wasn't. After accepting the agreement open Xcode again and add the account again. I restarted Xcode again (just to be on the save side) and tried it again. This time it worked and the error didn't occur anymore.I hope this solves your problem too.
Jun ’15
Xcode 7 is 32 bit supported?
We do general Unix development on Mac OS X but because some of the libaries we link against are currently on 32 bit we have to produce 32 bit binaries.When using Xcode 6 we can debug Unix binaries by selecting My Mac (32-bit) in the scheme selector, on Xcode 7 we only get My Mac and it gives the error: the specified architecture 'x86_64' is not compatible with 'i386-apple-macosx' in '/usr/atc-5.00.5/dev/cust0400/xcust'.I don't see any method of specifying i386 or 32-bit anywhere in build settings.Thanks, regards, Rob.
2
0
2.7k
Jun ’15