Date   

Has Xcode 9.2 made it up onto https://developer.apple.com/download/more/ yet?

Alex Zavatone
 

The command line tools for 9.2 are up there, but I don’t see Xcode itself.

Previously a team member informed us that they make sure to post Xcode for download in the download/more section of the developer website, but the latest version of Xcode appears to be Xcode 9.1 from October 30th.

Any idea why it’s missing?

Thanks.

Alex Zavatone


Re: libstdc++ vs libc++

Sandor Szatmari
 

Jens,

Thanks for your help...

On Dec 1, 2017, at 18:46, Jens Alfke <jens@mooseyard.com> wrote:


On Nov 21, 2017, at 7:55 PM, Sandor Szatmari <admin.szatmari.net@gmail.com> wrote:

I’m looking to understand the differences/subtleties between linking against libstdc++ and libc++.
libstdc++ is the older GCC C++ library. libc++ is the newer Clang C++ library.

My question is, will there be any problems with doing this one framework at a time? i.e. will issues arise from having an app that links against these frameworks if some of them link against the older libstdc++ and some against the newer libc++…
Don’t do it if the frameworks expose any C++ APIs, because the objects won’t be compatible — a libstdc++ std::vector isn’t implemented the same way as a libc++ one, for example.
It sounds like your saying is that if all the C++ code use is internal then it would be ok. i.e. there would be internal consistency and no incompatible C++ objects would encounter each other.

Thanks again, that makes sense...

Sandor


—Jens


Re: How Do I Delete A Target In Xcode 9?

Alex Zavatone
 


On Dec 1, 2017, at 6:38 PM, Jens Alfke <jens@...> wrote:



On Dec 1, 2017, at 4:31 PM, Michael Crawford <mike@...> wrote:

I don't think there is a "-".  There is a "+" button.

??? There’s definitely a “–“ button at the bottom of the list of targets. Let me try to attach a screenshot:
<PastedGraphic-2.png>

I think he’s trying to delete the target from some other place.  I just tested it and simply clicking on the target and pressing the delete key works for me.



Re: How Do I Delete A Target In Xcode 9?

 



On Dec 1, 2017, at 4:31 PM, Michael Crawford <mike@...> wrote:

I don't think there is a "-".  There is a "+" button.

??? There’s definitely a “–“ button at the bottom of the list of targets. Let me try to attach a screenshot:

However I managed to delete the offending target by editing the pbxproj file with vi.  It's helpful that it's full of comments.

I would not do that. The only time I manually edit a pbxproj file is to resolve git merge conflicts, and even then I cross my fingers and knock on wood.

—Jens


Re: How Do I Delete A Target In Xcode 9?

Alex Zavatone
 

Try this.

In Xcode 9, press command 1 to display the File Navigator and select your PROJECT, not the target.

In the window pane to the right of the File Navigator, you should see your PROJECT and TARGETS.

Under TARGETS, select one of your targets and press command D to duplicate it.

Click on the duplicated target.  Press the delete key.

Are you presented with a delete target confirmation sheet?

(If you’re trying to delete the target from the Navigator pane, that doesn’t work.)


On Dec 1, 2017, at 6:31 PM, Michael Crawford <mike@...> wrote:

Select the target and press the “-“ button below.

I don't think there is a "-".  There is a "+" button.

However I managed to delete the offending target by editing the pbxproj file with vi.  It's helpful that it's full of comments.


dependency_info.dat regeneration issue

Artyom Goncharov
 

Hello friends,

I am trying to change framework dependencies for some build targets via a script build phase right before compilation and linking. I do this by modifying */dependency_info.dat file that gets feed to the linker, but apparently it gets regenerated just before the compilation.

Is there a specific reason for doing so and does anybody know a way to overcome this?

Are there other ways to modify link-time dependencies on the fly?

Thanks

- Artyom


Re: How Do I Delete A Target In Xcode 9?

Michael Crawford
 

Select the target and press the “-“ button below.

I don't think there is a "-".  There is a "+" button.

However I managed to delete the offending target by editing the pbxproj file with vi.  It's helpful that it's full of comments.


Re: How Do I Delete A Target In Xcode 9?

 

On Dec 1, 2017, at 4:14 PM, Michael Crawford <mike@soggywizards.com> wrote:

In the Products group there is a target called iogdiagnose. Its source produced many compiler errors when I tried to build all my targets, so I removed the group with iogdiagnose's source from my project.

But the iogdiagnose target is still there. It produces a link error - missing main.
That’s not how you remove a target (in any version of Xcode).
Select the project in the file navigator (the root item), and you’ll see a list of targets in the editor. Select the target and press the “-“ button below.

—Jens


Re: How Do I Delete A Target In Xcode 9?

Alex Zavatone
 

How did you try to delete the target?


How Do I Delete A Target In Xcode 9?

Michael Crawford
 

Xcode 9 is quite similar to Xcode 8.

I'm building Apple's Open Source IOGraphicsFamily.

In the Products group there is a target called iogdiagnose. Its source produced many compiler errors when I tried to build all my targets, so I removed the group with iogdiagnose's source from my project.

But the iogdiagnose target is still there. It produces a link error - missing main.

Google failed to yield insight. There was the same question for Xcode 6.1, but Xcode 9 is quite different from 6.1.

Building the IOGraphicsFamily driver stack has been a huge PITA. I need my own build so I can enable the driver stack's kprintf logging.

Thine In Eternal Torment,

Michael

-- 

Mike Crawford

http://soggywizards.com

mike@...


One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.


Re: libstdc++ vs libc++

 

On Nov 21, 2017, at 7:55 PM, Sandor Szatmari <admin.szatmari.net@gmail.com> wrote:

I’m looking to understand the differences/subtleties between linking against libstdc++ and libc++.
libstdc++ is the older GCC C++ library. libc++ is the newer Clang C++ library.

My question is, will there be any problems with doing this one framework at a time? i.e. will issues arise from having an app that links against these frameworks if some of them link against the older libstdc++ and some against the newer libc++…
Don’t do it if the frameworks expose any C++ APIs, because the objects won’t be compatible — a libstdc++ std::vector isn’t implemented the same way as a libc++ one, for example.

—Jens


Re: Breakpoint for NSLocationWhenInUseUsageDescription warning

Alex Zavatone
 

I thought he mentioned it. Ahh. I see it’s just the warning message. Sorry about that.


For clarification, this would only happen in my previous app when we asked for and turned on location monitoring and only if the usage was set not to “always", but when "the app was in use".

I’d check for the method of requestWhenInUseAuthorization within the CLLocationManager.

https://developer.apple.com/documentation/corelocation/cllocationmanager/1620562-requestwheninuseauthorization?language=objc

Out of curiosity, is there an additional entry in your app's info.plist that’s location related?

On Nov 27, 2017, at 2:45 PM, Roland King <rols@rols.org> wrote:

set a symbolic breakpoint for what method? There’s no method name in the error message, which is why Carl asked the question I think.

On 28 Nov 2017, at 04:20, Alex Zavatone <zav@mac.com> wrote:

Set a symbolic breakpoint for the method.

Check out the docs on symbolic breakpoints.

Also, I would see this message only when starting up location monitoring, which I would turn on when my app started.

Does this happen at app launch or later on in its execution?

On Nov 27, 2017, at 12:57 PM, Carl Hoefs <newslists@autonomy.caltech.edu> wrote:

How can I track down what is causing the following warning in my iOS 11 app? I’m not using/accessing any location services that I’m aware of. Is there a breakpoint I can set in Xcode?

2017-11-27 11:48:30.249 This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data

-Carl








Re: Breakpoint for NSLocationWhenInUseUsageDescription warning

Roland King
 

set a symbolic breakpoint for what method? There’s no method name in the error message, which is why Carl asked the question I think.

On 28 Nov 2017, at 04:20, Alex Zavatone <zav@mac.com> wrote:

Set a symbolic breakpoint for the method.

Check out the docs on symbolic breakpoints.

Also, I would see this message only when starting up location monitoring, which I would turn on when my app started.

Does this happen at app launch or later on in its execution?

On Nov 27, 2017, at 12:57 PM, Carl Hoefs <newslists@autonomy.caltech.edu> wrote:

How can I track down what is causing the following warning in my iOS 11 app? I’m not using/accessing any location services that I’m aware of. Is there a breakpoint I can set in Xcode?

2017-11-27 11:48:30.249 This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data

-Carl






Re: Breakpoint for NSLocationWhenInUseUsageDescription warning

Alex Zavatone
 

Set a symbolic breakpoint for the method.

Check out the docs on symbolic breakpoints.

Also, I would see this message only when starting up location monitoring, which I would turn on when my app started.

Does this happen at app launch or later on in its execution?

On Nov 27, 2017, at 12:57 PM, Carl Hoefs <newslists@autonomy.caltech.edu> wrote:

How can I track down what is causing the following warning in my iOS 11 app? I’m not using/accessing any location services that I’m aware of. Is there a breakpoint I can set in Xcode?

2017-11-27 11:48:30.249 This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data

-Carl




Breakpoint for NSLocationWhenInUseUsageDescription warning

Carl Hoefs
 

How can I track down what is causing the following warning in my iOS 11 app? I’m not using/accessing any location services that I’m aware of. Is there a breakpoint I can set in Xcode?

2017-11-27 11:48:30.249 This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data

-Carl


libstdc++ vs libc++

Sandor Szatmari
 

I’m looking to understand the differences/subtleties between linking against libstdc++ and libc++.  


I have a project with several frameworks which currently link against libstdc++.  I need to bump the deployment target OS up.  Moving the Deployment target up will result in linking against the newer libc++. 


My question is, will there be any problems with doing this one framework at a time?  i.e. will issues arise from having an app that links against these frameworks if some of them link against the older libstdc++ and some against the newer libc++...


Sandor


Re: Xcode won't compile sources

John Brownie
 

Ick, it turns out to be the fact that I have some older C++ code that requires the older libstdc++ rather than the newer libc++, and this is quickly turning into a nightmare, as I need to dig into some of that older code and rework it.

The pains of trying to develop a replacement in pieces rather than a complete rework in Swift...

John

20 November 2017 at 17:02
Fun times, indeed!

The headers issue turns up because, in adding Swift files, I have to make the minimum OS version 10.9 rather than 10.8. For some reason, that makes an include line like:

#include <tr1/functional>

fails to compile, with the message "fatal error: 'tr1/functional' file not found".

After extensive investigation, the only factor that makes this fail to compile is the switch of minimum OS version. I have had warning messages about libstdc++ before, when it was 10.8, so I presume something changed at that point, but I have no clue as to where to look to solve this issue. Hopefully someone else has seen and resolved this one!

John
20 November 2017 at 14:48
Getting the header search paths right can be hell, once they are borked.

The sanest thing would be to revert to before you added the Swift files, make sure you can build and add the Swift files again.

The other thing you will want to do is output the build variables, see what Xcode thinks the header search paths are and verify that they are indeed present.

You can do this easily by clicking a check box to do this in the Build Phases, or add a phase that echos the build variables to the build process and before compile time.

Good luck. Sounds like fun times.









20 November 2017 at 12:28
With a working application written in a mixture of Obj-C, Obj-C++ and straight C++, I added some Swift files. After a bit of mucking around due to some header path issues, I have come to the point where it won't build, because it doesn't compile the sources. As far as I can tell, the sources are listed in the Compile Sources phase, but it gets skipped, and the linker complains that it can't find the files.

This is Xcode 8.3.2, on macOS 10.12.6. I've restarted the computer, cleaned the Build Folder, and tried what can think of, but this has me stumped.

Any pointers?

John

--
John Brownie
SIL-PNG, Ukarumpa, Eastern Highlands, Papua New Guinea
Mussau-Emira language, New Ireland Province, Papua New Guinea


Re: Xcode won't compile sources

John Brownie
 

Fun times, indeed!

The headers issue turns up because, in adding Swift files, I have to make the minimum OS version 10.9 rather than 10.8. For some reason, that makes an include line like:

#include <tr1/functional>

fails to compile, with the message "fatal error: 'tr1/functional' file not found".

After extensive investigation, the only factor that makes this fail to compile is the switch of minimum OS version. I have had warning messages about libstdc++ before, when it was 10.8, so I presume something changed at that point, but I have no clue as to where to look to solve this issue. Hopefully someone else has seen and resolved this one!

John
--
John Brownie
SIL-PNG, Ukarumpa, Eastern Highlands, Papua New Guinea
Mussau-Emira language, New Ireland Province, Papua New Guinea


Re: Xcode won't compile sources

Alex Zavatone
 

Getting the header search paths right can be hell, once they are borked.

The sanest thing would be to revert to before you added the Swift files, make sure you can build and add the Swift files again.

The other thing you will want to do is output the build variables, see what Xcode thinks the header search paths are and verify that they are indeed present.

You can do this easily by clicking a check box to do this in the Build Phases, or add a phase that echos the build variables to the build process and before compile time.

Good luck. Sounds like fun times.

On Nov 19, 2017, at 8:28 PM, John Brownie <john_brownie@sil.org> wrote:

With a working application written in a mixture of Obj-C, Obj-C++ and straight C++, I added some Swift files. After a bit of mucking around due to some header path issues, I have come to the point where it won't build, because it doesn't compile the sources. As far as I can tell, the sources are listed in the Compile Sources phase, but it gets skipped, and the linker complains that it can't find the files.

This is Xcode 8.3.2, on macOS 10.12.6. I've restarted the computer, cleaned the Build Folder, and tried what can think of, but this has me stumped.

Any pointers?

John
--
John Brownie
SIL-PNG, Ukarumpa, Eastern Highlands, Papua New Guinea
Mussau-Emira language, New Ireland Province, Papua New Guinea



Re: Xcode won't compile sources

John Brownie
 

OK, a bit of digging through things in response to suggestions showed part of the problem. When I was fiddling with the header paths, I had the boost headers as recursive, which led to an error of the argument list being too long. Trying to fix that by telling it to ignore the tools folder stopped that error, but apparently caused the failure to compile.

Thanks for the tips, which enabled me to find the problem (or at least, one of the problems).

John
--
John Brownie
SIL-PNG, Ukarumpa, Eastern Highlands, Papua New Guinea
Mussau-Emira language, New Ireland Province, Papua New Guinea

1081 - 1100 of 1433