Objective-C example project seems broken or needs an update
GabLeRoux opened this issue · 0 comments
Hi there, just wanted to give this a try, but I can't manage to get the Objective-C example project working. I haven't tried the swift project (yet).
Here's what I tried:
Clone and setup project
git clone git@github.com:m1entus/MZFormSheetPresentationController.git
cd MZFormSheetPresentationController/example/objective-c
pod install
Pod install failed with this:
[!] Invalid `Podfile` file: [!] Unsupported options `{:exclusive=>true}` for target `tvos`..
# from <snip>MZFormSheetPresentationController/Example/Objective-C/Podfile:4
# -------------------------------------------
#
> target :tvos, :exclusive => true do
# platform :tvos, "9.0"
# -------------------------------------------
Replaced podfile
So I replaced the Podfile
with something like that instead:
platform :ios, "8.0"
def shared_pods
pod 'MZFormSheetPresentationController'
pod 'MZAppearance'
end
target 'tvOSApplication' do
platform :tvos, "9.0"
shared_pods
end
target 'MZFormSheetPresentationController Objective-C Example' do
shared_pods
end
I was able to install these (but I may have broken things here). Looks like some of the files are actually being tracked in Pods folder:
❯ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Podfile
modified: Podfile.lock
modified: Pods/Manifest.lock
modified: Pods/Pods.xcodeproj/project.pbxproj
deleted: Pods/Target Support Files/Pods-MZAppearance/Pods-MZAppearance-dummy.m
deleted: Pods/Target Support Files/Pods-MZAppearance/Pods-MZAppearance-prefix.pch
deleted: Pods/Target Support Files/Pods-MZAppearance/Pods-MZAppearance.xcconfig
deleted: Pods/Target Support Files/Pods-tvos-MZAppearance/Pods-tvos-MZAppearance-dummy.m
deleted: Pods/Target Support Files/Pods-tvos-MZAppearance/Pods-tvos-MZAppearance-prefix.pch
deleted: Pods/Target Support Files/Pods-tvos-MZAppearance/Pods-tvos-MZAppearance.xcconfig
deleted: Pods/Target Support Files/Pods-tvos/Pods-tvos-acknowledgements.markdown
deleted: Pods/Target Support Files/Pods-tvos/Pods-tvos-acknowledgements.plist
deleted: Pods/Target Support Files/Pods-tvos/Pods-tvos-dummy.m
deleted: Pods/Target Support Files/Pods-tvos/Pods-tvos-frameworks.sh
deleted: Pods/Target Support Files/Pods-tvos/Pods-tvos-resources.sh
deleted: Pods/Target Support Files/Pods-tvos/Pods-tvos.debug.xcconfig
deleted: Pods/Target Support Files/Pods-tvos/Pods-tvos.release.xcconfig
deleted: Pods/Target Support Files/Pods/Pods-acknowledgements.markdown
deleted: Pods/Target Support Files/Pods/Pods-acknowledgements.plist
deleted: Pods/Target Support Files/Pods/Pods-dummy.m
deleted: Pods/Target Support Files/Pods/Pods-frameworks.sh
deleted: Pods/Target Support Files/Pods/Pods-resources.sh
deleted: Pods/Target Support Files/Pods/Pods.debug.xcconfig
deleted: Pods/Target Support Files/Pods/Pods.release.xcconfig
Untracked files:
(use "git add <file>..." to include in what will be committed)
Pods/Headers/Private/MZFormSheetPresentationController/
Pods/Headers/Public/MZFormSheetPresentationController/
Pods/MZFormSheetPresentationController/
Pods/Target Support Files/MZAppearance-iOS/
Pods/Target Support Files/MZAppearance-tvOS/
Pods/Target Support Files/MZFormSheetPresentationController-iOS/
Pods/Target Support Files/MZFormSheetPresentationController-tvOS/
Pods/Target Support Files/Pods-MZFormSheetPresentationController Objective-C Example/
Pods/Target Support Files/Pods-tvOSApplication/
podfile.patch
no changes added to commit (use "git add" and/or "git commit -a")
Building anyway
I tried to build the project anyway after updating the Signing team to Personal Team with a valid bundle identifier, but I'm getting a bunch of missing files warnings and a linker error in the end:
ld: library not found for -lMZAppearance-iOS
I did not investigate more, but I wish I could have given a try at this project.
Here's the full output when running the build from command line:
=== BUILD TARGET MZFormSheetPresentationController Objective-C Example OF PROJECT MZFormSheetPresentationController Objective-C Example WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
Ld build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/armv7/MZFormSheetPresentationController\ Objective-C\ Example normal armv7
cd <snip>/MZFormSheetPresentationController/Example/Objective-C
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH=<snip>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos -L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZAppearance-iOS -L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZFormSheetPresentationController-iOS -F<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos -filelist <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/armv7/MZFormSheetPresentationController\ Objective-C\ Example.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/armv7/MZFormSheetPresentationController\ Objective-C\ Example_lto.o -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -ObjC -lMZAppearance-iOS -lMZFormSheetPresentationController-iOS -framework QuartzCore -lPods-MZFormSheetPresentationController\ Objective-C\ Example -Xlinker -dependency_info -Xlinker <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/armv7/MZFormSheetPresentationController\ Objective-C\ Example_dependency_info.dat -o <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/armv7/MZFormSheetPresentationController\ Objective-C\ Example
ld: warning: directory not found for option '-L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZAppearance-iOS'
ld: warning: directory not found for option '-L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZFormSheetPresentationController-iOS'
ld: library not found for -lMZAppearance-iOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/arm64/MZFormSheetPresentationController\ Objective-C\ Example normal arm64
cd <snip>/MZFormSheetPresentationController/Example/Objective-C
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH=<snip>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos -L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZAppearance-iOS -L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZFormSheetPresentationController-iOS -F<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos -filelist <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/arm64/MZFormSheetPresentationController\ Objective-C\ Example.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/arm64/MZFormSheetPresentationController\ Objective-C\ Example_lto.o -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -ObjC -lMZAppearance-iOS -lMZFormSheetPresentationController-iOS -framework QuartzCore -lPods-MZFormSheetPresentationController\ Objective-C\ Example -Xlinker -dependency_info -Xlinker <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/arm64/MZFormSheetPresentationController\ Objective-C\ Example_dependency_info.dat -o <snip>/MZFormSheetPresentationController/Example/Objective-C/build/MZFormSheetPresentationController\ Objective-C\ Example.build/Release-iphoneos/MZFormSheetPresentationController\ Objective-C\ Example.build/Objects-normal/arm64/MZFormSheetPresentationController\ Objective-C\ Example
ld: warning: directory not found for option '-L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZAppearance-iOS'
ld: warning: directory not found for option '-L<snip>/MZFormSheetPresentationController/Example/Objective-C/build/Release-iphoneos/MZFormSheetPresentationController-iOS'
ld: library not found for -lMZAppearance-iOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Versions I used
Xcode Version 8.3.3 (8E3004b)
Cocoapods 1.3.1