Skip to content

Commit 27ea02d

Browse files
committed
Frameworks named *.swift
1 parent 40aa43c commit 27ea02d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

App/InjectionNext/FrontendServer.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ class FrontendServer: InjectionServer {
159159
if let sdkPlatform: String = arg[#"/([A-Za-z]+)[\d\.]+\.sdk$"#] {
160160
platform = sdkPlatform
161161
}
162-
if arg.hasSuffix(".swift") {
162+
if arg.hasSuffix(".swift") && args.last != "-F" &&
163+
Fstat(path: arg)?.isDirectory != true {
163164
swiftFiles += arg+"\n"
164165
} else if arg[Recompiler.optionsToRemove] {
165166
_ = feed.readString()

App/InjectionNext/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>10770</string>
22+
<string>10783</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.developer-tools</string>
2525
<key>LSMinimumSystemVersion</key>

App/InjectionNext/MonitorXcode.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ class MonitorXcode {
146146
#endif
147147
}
148148

149-
if arg.hasSuffix(".swift") {
149+
if arg.hasSuffix(".swift") && args.last != "-F" &&
150+
Fstat(path: arg)?.isDirectory != true {
150151
swiftFiles += arg+"\n"
151152
fileCount += 1
152153
} else if arg == "-fsyntax-only" || arg == "-o" {

0 commit comments

Comments
 (0)