Compile time
In the implementationmake
When the instruction is compiled, something like this may occurYou do not an SDK
The error. This is because the Xcode version is not specified. You can run the following command to check whether the default version of Xcode is specified.
$ xcode-select -p
Copy the code
Then run the following command to change the specified default version. The official link
$ sudo xcode-select -switch /Applications/Xcode.app
Copy the code
If there is a cache problem, run the clean command to resolve it.
During the packaging
In the implementationmake package
When the deb package is packaged, ifIO::Compress::Lzma
The error can be resolved in either of the following ways:
-
Modify dm.pl and deb.mk files.
- Run the following command to modify
dm.pl
File:
$ vim $THEOS/vendor/dm.pl/dm.pl Copy the code
Find the following two lines in the file, comment.
# use IO::Compress::Lzma; # use IO::Compress::Xz; Copy the code
- Run the following command to change the password
deb.mk
File.
$ vim $THEOS/makefiles/package/deb.mk Copy the code
File _THEOS_PLATFORM_DPKG_DEB_COMPRESSION? = lzMA, modify to _THEOS_PLATFORM_DPKG_DEB_COMPRESSION? = gzip
- Run the following command to modify
-
Install the XZ tool for macOS
$ brew install xz $ sudo cpan IO :: Compress :: Lzma Copy the code
There is a note, initialize, Package Name [com. Yourcompany. Wechatpwddemo] : not in all capital letters. Uppercase letters will not cause problems at compile time, but will cause errors at package time.