Closed daushn closed 9 years ago
I assume, that you use obfuscate_project
script, am I right? In that case, you have to provide proper values to variables corresponding to your project in the first section of the script and commit those changes.
# General build options
# WORKSPACE=YourWorkspace.xcworkspace
PROJECT=YourProject.xcodeproj
SCHEME=YourScheme
CONFIGURATION=Release
SDK=7.1
# Additional build options
XCODEBUILD_OPTS=""
CLASS_GUARD_OPTS="-i IgnoredSymbol -F !ExcludedClass"
# In case of using Xcode >= 6 and SDK >= 8
CLASS_GUARD_OPTS_SDK="--sdk-root /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$SDK.sdk"
Thanks, I corrected, but that's got this error :
The following build commands failed: Ld build/Build/Intermediates/MyProject.build/Release-iphonesimulator/MyProject.build/Objects-normal/i386/MyProject normal i386 Ld build/Build/Intermediates/MyProject.build/Release-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject normal x86_64 (2 failures) logout
@daushn, there are some linker issues. If your project is compiling properly without obfuscation, check out what has been said in readme's section Undefined symbols
(https://github.com/Polidea/ios-class-guard#undefined-symbols) of the iOS Class Guard project. Try to figure out which symbols are missing and exclude them from obfuscation.
Yes, it's compiling properly without obfuscation. Error is associated with lPod :
ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)
\ BUILD FAILED **
Guys please help me. Still shows this error:
ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)
\ BUILD FAILED **
The following build commands failed: Ld build/Build/Intermediates/myProject.build/Release-iphonesimulator/myProject.build/Objects-normal/i386/myProject normal i386 Ld build/Build/Intermediates/myProject.build/Release-iphonesimulator/myProject.build/Objects-normal/x86_64/myProject normal x86_64 (2 failures) logout
Maybe it will be help for someone, finally I found a solution to this issue. I just changed the script and instead of using SYMROOT=/build
tried this SYMROOT=$(PWD)/build
. It's setting the SYMROOT with a absolute paths.
xcodebuild \
-workspace MyProject.xcworkspace \
-scheme MyProject \
-sdk iphonesimulator8.1 \
-configuration Release \
clean build \
OBJROOT=$(PWD)/build \
SYMROOT=$(PWD)/build
git reset --hard HEAD is now at 46bb94d 04.03.15 for obfuscate 2 git clean -fdx xcodebuild -project YourProject.xcodeproj -scheme YourScheme -configuration Release -sdk iphonesimulator7.1 clean build -derivedDataPath build User defaults from command line: IDEDerivedDataPathOverride = ....
Build settings from command line: SDKROOT = iphonesimulator7.1
xcodebuild: error: 'YourProject.xcodeproj' does not exist. logout