Skip to content

Commit

Permalink
Fix warnings in Xcode 15
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Sep 20, 2023
1 parent 221f451 commit b6b6738
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2020 Tom Lokhorst
Copyright (c) 2015-2023 Tom Lokhorst

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ try! proj.write(to: xcodeproj, format: PropertyListSerialization.PropertyListFor
Releases
--------

- 2.9.1 - 2023-09-10 - Add support for local swift packages
- 2.9.2 - 2023-09-20 - Fix warnings in Xcode 15
- 2.9.1 - 2023-09-10 - Add support for local Swift packages
- 2.9.0 - 2022-11-07 - Add removePackage function to XCSwiftPackageProductDependency
- 2.8.0 - 2021-11-17 - Add fields to PBXShellScriptBuildPhase
- 2.7.7 - 2020-05-08 - Add support for remote swift packages
Expand Down
2 changes: 1 addition & 1 deletion Sources/XcodeEdit/PBXObject+Fields.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

internal extension Dictionary where Key == Guid, Value == AnyObject {
mutating func set<Value>(key: Guid, reference: Reference<Value>?) {
mutating func set<V>(key: Guid, reference: Reference<V>?) {
if let reference = reference {
self[key] = reference.id.value as NSString
}
Expand Down
9 changes: 5 additions & 4 deletions Sources/XcodeEdit/XCProjectFile+Rswift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ extension XCProjectFile {
public func createShellScript(name: String, shellScript: String) throws -> PBXShellScriptBuildPhase {
let fields: [String: Any] = [
"isa": "PBXShellScriptBuildPhase",
"files": [],
"files": [] as [String],
"name": name,
"runOnlyForDeploymentPostprocessing": 0,
"shellPath": "/bin/sh",
"inputPaths": [],
"outputPaths": [],
"inputPaths": [] as [String],
"outputPaths": [] as [String],
"shellScript": shellScript,
"buildActionMask": 0x7FFFFFFF]
"buildActionMask": 0x7FFFFFFF
]

let guid = allObjects.createFreshGuid(from: project.id)
let scriptBuildPhase = try PBXShellScriptBuildPhase(id: guid, fields: fields, allObjects: allObjects)
Expand Down

0 comments on commit b6b6738

Please sign in to comment.