Skip to content

Commit ab190eb

Browse files
committed
fix info.plist path
1 parent 24bfff1 commit ab190eb

File tree

3 files changed

+89
-15
lines changed

3 files changed

+89
-15
lines changed

ParseLiveQuery/ParseLiveQuery.xcodeproj/project.pbxproj

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,14 @@
344344
name = Frameworks;
345345
sourceTree = "<group>";
346346
};
347+
39B8575929D6446C0023ADB0 /* Resources */ = {
348+
isa = PBXGroup;
349+
children = (
350+
F5256FD31BD71F9A0052FB8A /* Info.plist */,
351+
);
352+
path = Resources;
353+
sourceTree = "<group>";
354+
};
347355
708836732561F503005B32F0 /* ParseLiveQuery-watchOS */ = {
348356
isa = PBXGroup;
349357
children = (
@@ -362,14 +370,6 @@
362370
path = "ParseLiveQuery-tvOS";
363371
sourceTree = "<group>";
364372
};
365-
81464FC51CA31DA0000235E7 /* Resources */ = {
366-
isa = PBXGroup;
367-
children = (
368-
F5256FD31BD71F9A0052FB8A /* Info.plist */,
369-
);
370-
name = Resources;
371-
sourceTree = "<group>";
372-
};
373373
95E916542995216A00EFDB34 /* Products */ = {
374374
isa = PBXGroup;
375375
children = (
@@ -438,13 +438,13 @@
438438
isa = PBXGroup;
439439
children = (
440440
F5DC9D381BD9BAFC00E8FF07 /* Internal */,
441+
39B8575929D6446C0023ADB0 /* Resources */,
441442
F5591BA31BD720E10072F966 /* Client.swift */,
442443
F534A5B11BDAFE0200CBD11A /* Subscription.swift */,
443444
F54D58B51C8E33D9009F8D6C /* ObjCCompat.swift */,
444445
F59CA92E1C8E496200329737 /* Errors.swift */,
445446
0632EDD31CA1A6DB00DD3CB8 /* Parse+LiveQuery.swift */,
446447
F5A88F491C9B6EBA002F0E0D /* PFQuery+Subscribe.swift */,
447-
81464FC51CA31DA0000235E7 /* Resources */,
448448
);
449449
path = ParseLiveQuery;
450450
sourceTree = "<group>";
@@ -1150,7 +1150,7 @@
11501150
DYLIB_INSTALL_NAME_BASE = "@rpath";
11511151
EXCLUDED_ARCHS = "";
11521152
FRAMEWORK_VERSION = A;
1153-
INFOPLIST_FILE = ParseLiveQuery/Info.plist;
1153+
INFOPLIST_FILE = ParseLiveQuery/Resources/Info.plist;
11541154
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
11551155
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
11561156
MACOSX_DEPLOYMENT_TARGET = 10.10;
@@ -1177,7 +1177,7 @@
11771177
DYLIB_INSTALL_NAME_BASE = "@rpath";
11781178
EXCLUDED_ARCHS = "";
11791179
FRAMEWORK_VERSION = A;
1180-
INFOPLIST_FILE = ParseLiveQuery/Info.plist;
1180+
INFOPLIST_FILE = ParseLiveQuery/Resources/Info.plist;
11811181
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
11821182
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
11831183
MACOSX_DEPLOYMENT_TARGET = 10.10;
@@ -1202,7 +1202,7 @@
12021202
DYLIB_INSTALL_NAME_BASE = "@rpath";
12031203
EXCLUDED_ARCHS = arm64;
12041204
FRAMEWORK_VERSION = A;
1205-
INFOPLIST_FILE = ParseLiveQuery/Info.plist;
1205+
INFOPLIST_FILE = ParseLiveQuery/Resources/Info.plist;
12061206
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
12071207
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
12081208
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -1232,7 +1232,7 @@
12321232
DYLIB_INSTALL_NAME_BASE = "@rpath";
12331233
EXCLUDED_ARCHS = arm64;
12341234
FRAMEWORK_VERSION = A;
1235-
INFOPLIST_FILE = ParseLiveQuery/Info.plist;
1235+
INFOPLIST_FILE = ParseLiveQuery/Resources/Info.plist;
12361236
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
12371237
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
12381238
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";

ParseLiveQuery/ParseLiveQuery/Info.plist renamed to ParseLiveQuery/ParseLiveQuery/Resources/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>$(MARKETING_VERSION)</string>
18+
<string>2.2.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>1</string>
22+
<string>2.2.0</string>
2323
</dict>
2424
</plist>

Rakefile

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,80 @@ namespace :build do
152152
end
153153
end
154154

155+
namespace :parse_live_query do
156+
desc 'Build iOS LiveQuery framework.'
157+
task :ios do
158+
task = XCTask::BuildFrameworkTask.new do |t|
159+
t.directory = script_folder
160+
t.build_directory = build_folder
161+
t.framework_type = XCTask::FrameworkType::IOS
162+
t.framework_name = 'ParseLiveQuery.framework'
163+
t.workspace = 'Parse.xcworkspace'
164+
t.scheme = 'ParseLiveQuery-iOS'
165+
t.configuration = 'Release'
166+
end
167+
result = task.execute
168+
unless result
169+
puts 'Failed to build iOS LiveQuery Framework.'
170+
exit(1)
171+
end
172+
end
173+
174+
desc 'Build watchOS LiveQuery framework.'
175+
task :watchos do
176+
task = XCTask::BuildFrameworkTask.new do |t|
177+
t.directory = script_folder
178+
t.build_directory = build_folder
179+
t.framework_type = XCTask::FrameworkType::WATCHOS
180+
t.framework_name = 'ParseLiveQuery.framework'
181+
t.workspace = 'Parse.xcworkspace'
182+
t.scheme = 'ParseLiveQuery-watchOS'
183+
t.configuration = 'Release'
184+
end
185+
result = task.execute
186+
unless result
187+
puts 'Failed to build watchOS LiveQuery Framework.'
188+
exit(1)
189+
end
190+
end
191+
192+
desc 'Build macOS LiveQuery framework.'
193+
task :macos do
194+
task = XCTask::BuildFrameworkTask.new do |t|
195+
t.directory = script_folder
196+
t.build_directory = build_folder
197+
t.framework_type = XCTask::FrameworkType::OSX
198+
t.framework_name = 'ParseLiveQuery.framework'
199+
t.workspace = 'Parse.xcworkspace'
200+
t.scheme = 'ParseLiveQuery-macOS'
201+
t.configuration = 'Release'
202+
end
203+
result = task.execute
204+
unless result
205+
puts 'Failed to build macOS LiveQuery Framework.'
206+
exit(1)
207+
end
208+
end
209+
210+
desc 'Build tvOS LiveQuery framework.'
211+
task :tvos do
212+
task = XCTask::BuildFrameworkTask.new do |t|
213+
t.directory = script_folder
214+
t.build_directory = build_folder
215+
t.framework_type = XCTask::FrameworkType::TVOS
216+
t.framework_name = 'ParseLiveQuery.framework'
217+
t.workspace = 'Parse.xcworkspace'
218+
t.scheme = 'ParseLiveQuery-tvOS'
219+
t.configuration = 'Release'
220+
end
221+
result = task.execute
222+
unless result
223+
puts 'Failed to build tvOS LiveQuery Framework.'
224+
exit(1)
225+
end
226+
end
227+
end
228+
155229
namespace :facebook_utils do
156230
desc 'Build iOS FacebookUtils framework.'
157231
task :ios do

0 commit comments

Comments
 (0)