codewinsdotcom/PostgresClientKit

Project settings are valid but still get warning plus two other warnings

codemechanica opened this issue · 6 comments

I'm able to run in the simulator but just wanted a clean build. I'm a swift newbie but let me know if I can help in any way. I'm also available for virtual meetings in the evenings on Mondays and Wednesdays.

It looks like you are using CocoaPods. Are you consuming PostgresClientKit as a CocoaPod or through Swift Package Manager?

I was able to create a simple iOS app in Xcode today, successfully picking up PostgresClientKit as a CocoaPod.

You might try setting platform in your Podfile. For example:

target 'Delme4' do
  platform :ios, '16.1'
  pod 'PostgresClientKit', '~> 1.0'
end

To clear three warnings in Xcode, I also had to bump up IPHONEOS_DEPLOYMENT_TARGET to 11.0 (from 10.0) in the PostgresClientKit, BlueSocket, and BlueSSLService targets of Pods.xcodeproj.

With this, I was able to get a clean build in my environment (Xcode 14.1 against an iOS 16.1 simulator).

I'm not sure any of this will help you, though -- in your warning messages, I don't know where the iOS 15.6 reference is coming from. Other CocoaPods?

If you are still having problems, if you could create a GitHub repository with a simple reproducible test case, I could investigate further.

Also, I recommend Swift Package Manager for dependency management, whenever possible. It's well integrated into Xcode now, and is pretty bulletproof. Here is a simple iOS app that consumes PostgresClientKit through Swift Package Manager.

https://github.com/pitfield/PostgresClientKit-iOS-Example

Okay, I think the best way to go is via Swift Package Manager (SPM). I trashed everything created a new xcode project. I git cloned this repo and did swift package clean and swift build. I then added the package to my project and import PostgresClientKit was not recognized. Here is the link to my public repo:

https://github.com/fmigsystems/DMPJ_Attendance

Try this in Xcode:

Working! Runs in the simulator when 'import PostgresClientKit' is added. If it is alright with you, I'll create a more detailed mark down step by step page for xcode 14.

Glad you got it working. I've added a few notes to the README on consuming PostgresClientKit from an Xcode project. Please let me know if you have any suggestions. Thanks!