Skip to content

Commit 13417e3

Browse files
committed
Update on "[iOS] Change the source link in podspec"
### Summary A couple of changes 1. Replace the source link with the newly nightly build address 2. Remove module support for Swift and Objective-C 3. Expose all static libraries instead of archiving them into one single library. This is because those static libraries might contain object files that have the same name, e.g. `init.c.o` in both `libcupinfo.a` and `libqnnpack.a`. If we archive them into one using this `libtool -static` command, by default, it only picks one object file and discards the others, which could result in undefined symbols when linking the executable. The change here is to expose all the static libraries and let the linker decide which one to use. ### Test Plan - pod spec lint succeed - `pod spec lint --verbose --allow-warnings --no-clean --use-libraries --skip-import-validation` Differential Revision: [D17363037](https://our.internmc.facebook.com/intern/diff/D17363037)
1 parent 52ecec1 commit 13417e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ios/LibTorch.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
#include <torch/script.h>
1+
#ifndef LibTorch_h
2+
#define LibTorch_h
3+
4+
#include <torch/script.h>
5+
6+
#endif

0 commit comments

Comments
 (0)